From 1825e5f39c3c682a0fad0b9603f28393d16d3411 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 12 Aug 2019 08:32:10 -0400 Subject: [PATCH] blast furnaces were not working correctly. --- .../java/com/songoda/epicfurnaces/listeners/BlockListeners.java | 2 +- .../com/songoda/epicfurnaces/listeners/InventoryListeners.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }