diff --git a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java index 90c3c97..9d37f84 100644 --- a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java +++ b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java @@ -51,7 +51,7 @@ public class BlockListeners implements Listener { return; } - if (event.getBlock().getType() != Material.FURNACE) + if (event.getBlock().getType().name().contains("FURNACE")) return; ItemStack item = event.getItemInHand(); diff --git a/src/main/java/com/songoda/epicfurnaces/listeners/InventoryListeners.java b/src/main/java/com/songoda/epicfurnaces/listeners/InventoryListeners.java index df54038..6c9bc6c 100644 --- a/src/main/java/com/songoda/epicfurnaces/listeners/InventoryListeners.java +++ b/src/main/java/com/songoda/epicfurnaces/listeners/InventoryListeners.java @@ -39,7 +39,7 @@ public class InventoryListeners implements Listener { if (event.getAction() != InventoryAction.NOTHING) { if (event.getCurrentItem().getType() != Material.AIR) { ItemStack item = event.getCurrentItem(); - if (item.getType() == Material.FURNACE) { + if (item.getType().name().contains("FURNACE")) { event.setCancelled(true); } }