mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
less vebose about minecraft config update
This commit is contained in:
parent
8582038c71
commit
d096ee7f35
2 changed files with 5 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ public class UpdateHandler {
|
||||||
|
|
||||||
boolean hadUpdate = false;
|
boolean hadUpdate = false;
|
||||||
for (MCUpdate mcUpdate : mcUpdateMap) {
|
for (MCUpdate mcUpdate : mcUpdateMap) {
|
||||||
hadUpdate |= mcUpdate.handleUpdate(current);
|
hadUpdate |= mcUpdate.handleUpdate(current, hadUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hadUpdate) {
|
if (hadUpdate) {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ public abstract class MCUpdate {
|
||||||
this.version = version;
|
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
|
// Test if we are running in this update version or better
|
||||||
if(version.greaterThan(current))
|
if(version.greaterThan(current))
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -25,7 +25,9 @@ public abstract class MCUpdate {
|
||||||
if(this.version.lesserEqual(version)) return false;
|
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();
|
doUpdate();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue