Fixed Economical

This commit is contained in:
Auxilor 2020-12-08 08:56:56 +00:00
parent 26d6287123
commit ad9cad19c3

View File

@ -17,8 +17,14 @@ public class Economical extends EcoEnchant {
@EventHandler
public void onElytraBoost(PlayerElytraBoostEvent event) {
if(EnchantmentUtils.passedChance(this, EnchantChecks.getArmorPoints(event.getPlayer(), this)))
if(!EnchantChecks.chestplate(event.getPlayer(), this))
return;
if(!EnchantmentUtils.passedChance(this, EnchantChecks.getArmorPoints(event.getPlayer(), this)))
return;
if(this.getDisabledWorlds().contains(event.getPlayer().getWorld())) return;
event.setShouldConsume(false);
}
}