Fix max-range bug

This commit is contained in:
tastybento 2021-09-18 08:14:43 -07:00
parent d92632341d
commit 3282b1bd12

View File

@ -562,7 +562,7 @@ public class Island implements DataObject, MetaDataAble {
public void setMaxEverProtectionRange(int maxEverProtectionRange) { public void setMaxEverProtectionRange(int maxEverProtectionRange) {
this.maxEverProtectionRange = maxEverProtectionRange; this.maxEverProtectionRange = maxEverProtectionRange;
if (maxEverProtectionRange > this.range) { if (maxEverProtectionRange > this.range) {
maxEverProtectionRange = this.range; this.maxEverProtectionRange = this.range;
} }
setChanged(); setChanged();
} }
@ -604,7 +604,7 @@ public class Island implements DataObject, MetaDataAble {
} }
@Override @Override
public String getUniqueId() { public @NonNull String getUniqueId() {
return uniqueId; return uniqueId;
} }