mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-11-28 04:45:12 +01:00
blast furnaces were not working correctly.
This commit is contained in:
parent
c5f33cb340
commit
1825e5f39c
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user