From d09a84277d38ffc27f021796e2db7fc8d1ad9279 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Thu, 27 Sep 2018 21:22:33 -0400 Subject: [PATCH] Fix for teleport handler --- .../java/com/songoda/epichoppers/handlers/TeleportHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/TeleportHandler.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/TeleportHandler.java index 5ffcd42..0e7a620 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/TeleportHandler.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/TeleportHandler.java @@ -74,6 +74,7 @@ public class TeleportHandler { if (nextHopper.getSyncedBlock() != null) { next = nextHopper.getSyncedBlock(); } + if (nextHopper == hopper) break; if (!next.getType().equals(Material.HOPPER)) { instance.getHopperManager().removeHopper(nextHopper.getLocation()); break;