diff --git a/src/main/java/baubles/common/container/InventoryBaubles.java b/src/main/java/baubles/common/container/InventoryBaubles.java index 37be973..222b95c 100644 --- a/src/main/java/baubles/common/container/InventoryBaubles.java +++ b/src/main/java/baubles/common/container/InventoryBaubles.java @@ -172,7 +172,8 @@ public class InventoryBaubles implements IInventory { */ @Override public boolean isItemValidForSlot(int i, ItemStack stack) { - if (stack == null || !(stack.getItem() instanceof IBauble)) + if (stack == null || !(stack.getItem() instanceof IBauble) + || !((IBauble) stack.getItem()).canEquip(stack, player.get())) return false; if (i == 0 && ((IBauble) stack.getItem()).getBaubleType(stack) == BaubleType.AMULET) @@ -222,4 +223,4 @@ public class InventoryBaubles implements IInventory { } } } -} \ No newline at end of file +}