diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java index d3e3f40..5e5e14c 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java @@ -179,6 +179,11 @@ public class HopHandler { } Block b2 = dest.getBlock(); + if (!(b2.getState() instanceof InventoryHolder)) { + hopper.getFilter().setEndPoint(null); + return; + } + addItem(hopperBlock, hopper, b2, item, isS, amt, place); block.getState().update();