Fixed Thrive and Prosperity for players wearing armor from older versions

This commit is contained in:
Auxilor 2021-03-06 19:20:20 +00:00
parent 7ce16e881a
commit 324a6362f7
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ public class Thrive extends EcoEnchant {
assert inst != null;
inst.setBaseValue(inst.getDefaultValue());
if (this.getDisabledWorlds().contains(player.getWorld())) {
points = 0;
}

View File

@ -34,6 +34,8 @@ public class Prosperity extends EcoEnchant {
assert inst != null;
inst.setBaseValue(inst.getDefaultValue());
if (this.getDisabledWorlds().contains(player.getWorld())) {
points = 0;
}