Fixed changes from reverting
This commit is contained in:
@@ -28,6 +28,9 @@ public class Parasitic extends EcoEnchant {
|
||||
if (newHealth > attacker.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()) {
|
||||
newHealth = attacker.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
|
||||
}
|
||||
attacker.setHealth(newHealth);
|
||||
|
||||
if (attacker.getHealth() > 0) {
|
||||
attacker.setHealth(newHealth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class Soulbound extends EcoEnchant {
|
||||
}
|
||||
|
||||
if (this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "on-books")) {
|
||||
if (itemStack.getItemMeta() instanceof EnchantmentStorageMeta && (((EnchantmentStorageMeta) itemStack.getItemMeta()).getStoredEnchants().containsKey(this.getEnchantment()))) {
|
||||
if (itemStack.getItemMeta() instanceof EnchantmentStorageMeta && (((EnchantmentStorageMeta) itemStack.getItemMeta()).getStoredEnchants().containsKey(this))) {
|
||||
soulboundItems.add(itemStack);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user