mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-11-30 22:03:22 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.getBlock().getType() != Material.FURNACE)
|
if (event.getBlock().getType().name().contains("FURNACE"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ItemStack item = event.getItemInHand();
|
ItemStack item = event.getItemInHand();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user