From a4781b3ae74608e07d9978fa780f3dfd63e21674 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sat, 29 Dec 2018 14:09:00 -0500 Subject: [PATCH] endpoint fix. --- .../java/com/songoda/epichoppers/handlers/HopHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 4f1d645..a16bde0 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 @@ -140,10 +140,7 @@ public class HopHandler { if (hopper.getFilter().getEndPoint() != null && block != null && block.getState() instanceof Hopper) { Location dest = hopper.getFilter().getEndPoint(); - int destx = location.getBlockX() >> 4; - int destz = location.getBlockZ() >> 4; - - if (!dest.getWorld().isChunkLoaded(destx, destz)) + if (!dest.getWorld().isChunkLoaded(dest.getBlockX() >> 4, dest.getBlockZ() >> 4)) return; Block b2 = dest.getBlock();