Updated economical

This commit is contained in:
Auxilor
2020-12-10 19:26:06 +00:00
parent bd8738a961
commit 0f372153ca

View File

@@ -17,7 +17,10 @@ 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);
}