diff --git a/ChestsPlusPlus_Main/src/main/java/com/jamesdpeters/minecraft/chests/interfaces/VirtualCraftingHolder.java b/ChestsPlusPlus_Main/src/main/java/com/jamesdpeters/minecraft/chests/interfaces/VirtualCraftingHolder.java index a47501d..96412fc 100644 --- a/ChestsPlusPlus_Main/src/main/java/com/jamesdpeters/minecraft/chests/interfaces/VirtualCraftingHolder.java +++ b/ChestsPlusPlus_Main/src/main/java/com/jamesdpeters/minecraft/chests/interfaces/VirtualCraftingHolder.java @@ -217,7 +217,12 @@ public class VirtualCraftingHolder implements InventoryHolder { Inventory output; if(blockBelow.getState() instanceof Hopper){ + Bukkit.broadcastMessage("Below is hopper!"); Hopper hopper = (Hopper) blockBelow.getState(); + if(blockBelow.isBlockPowered() || blockBelow.isBlockIndirectlyPowered()){ + Bukkit.broadcastMessage("Hopper is powered!"); + continue; //If hopper is powered no crafting should happen. + } output = hopper.getInventory(); } else { output = getInventory(blockBelow);