blast furnaces were not working correctly.

This commit is contained in:
Brianna 2019-08-12 08:32:10 -04:00
parent c5f33cb340
commit 1825e5f39c
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class BlockListeners implements Listener {
return; return;
} }
if (event.getBlock().getType() != Material.FURNACE) if (event.getBlock().getType().name().contains("FURNACE"))
return; return;
ItemStack item = event.getItemInHand(); ItemStack item = event.getItemInHand();

View File

@ -39,7 +39,7 @@ public class InventoryListeners implements Listener {
if (event.getAction() != InventoryAction.NOTHING) { if (event.getAction() != InventoryAction.NOTHING) {
if (event.getCurrentItem().getType() != Material.AIR) { if (event.getCurrentItem().getType() != Material.AIR) {
ItemStack item = event.getCurrentItem(); ItemStack item = event.getCurrentItem();
if (item.getType() == Material.FURNACE) { if (item.getType().name().contains("FURNACE")) {
event.setCancelled(true); event.setCancelled(true);
} }
} }