From ed03d46be6fa4af5a800bc84efa080ea77c0422a Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Mon, 10 Dec 2018 08:51:43 -0500 Subject: [PATCH] fix for auto connecting hoppers --- .../java/com/songoda/epichoppers/listeners/HopperListeners.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/listeners/HopperListeners.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/listeners/HopperListeners.java index 8e3e6ad..e1f31d2 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/listeners/HopperListeners.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/listeners/HopperListeners.java @@ -32,7 +32,7 @@ public class HopperListeners implements Listener { return; Hopper hopper = instance.getHopperManager().getHopper(source.getLocation()); - if (hopper.getLinkedBlocks() == null && !hopper.getLinkedBlocks().isEmpty()) { + if (hopper.getLinkedBlocks() == null || hopper.getLinkedBlocks().isEmpty()) { hopper.clearLinkedBlocks(); hopper.addLinkedBlock(event.getDestination().getLocation().getBlock()); }