less vebose about minecraft config update

This commit is contained in:
alexcrea 2025-12-01 19:26:19 +01:00
parent 8582038c71
commit d096ee7f35
Signed by: alexcrea
GPG key ID: E346CD16413450E3
2 changed files with 5 additions and 3 deletions

View file

@ -71,7 +71,7 @@ public class UpdateHandler {
boolean hadUpdate = false;
for (MCUpdate mcUpdate : mcUpdateMap) {
hadUpdate |= mcUpdate.handleUpdate(current);
hadUpdate |= mcUpdate.handleUpdate(current, hadUpdate);
}
if (hadUpdate) {

View file

@ -13,7 +13,7 @@ public abstract class MCUpdate {
this.version = version;
}
public boolean handleUpdate(Version current){
public boolean handleUpdate(Version current, boolean hadUpdate){
// Test if we are running in this update version or better
if(version.greaterThan(current))
return false;
@ -25,7 +25,9 @@ public abstract class MCUpdate {
if(this.version.lesserEqual(version)) return false;
}
CustomAnvil.instance.getLogger().info("Updating config to support " + version +" ...");
if(!hadUpdate){
CustomAnvil.instance.getLogger().info("Updating config to support minecraft " + current +" ...");
}
doUpdate();
return true;
}