mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed Economical
This commit is contained in:
parent
26d6287123
commit
ad9cad19c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user