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 10f218c..228a5b0 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 @@ -136,13 +136,13 @@ public class HopHandler { if (!whiteList.isEmpty() && whiteList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) { doBlacklist(hopperState, hopper, hopperContents[i].clone(), amount, i); - block.getState().update(); + hopperState.update(); continue main; } if (blackList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) { if (addItem(hopperState, hopper, destinationInventory, destinationBlock, hopperContents[i], amount, i)) { - block.getState().update(); + hopperState.update(); continue main; } }