Update Soulbound.java

This commit is contained in:
kireevm96 2021-03-04 16:43:07 +03:00 committed by GitHub
parent c5898f13d9
commit e9236f97de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ public class Soulbound extends EcoEnchant {
ItemStack item = killer.getInventory().getItemInMainHand();
if (EnchantChecks.item(item, EcoEnchants.REAPER)) {
if (!(EcoEnchants.REAPER.getDisabledWorlds().contains(player.getWorld()))) {
final int points = EnchantChecks.getItemLevel(item, EcoEnchants.REAPER);
int points = EnchantChecks.getItemLevel(item, EcoEnchants.REAPER);
if (EnchantmentUtils.passedChance(EcoEnchants.REAPER, points)) {
return;
}