From a4c4d41cc65d98e1fcb97a6e1134038e77641a2b Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sat, 29 Dec 2018 14:06:02 -0500 Subject: [PATCH] bit shifting --- .../java/com/songoda/epichoppers/handlers/HopHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 3745fd9..4f1d645 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 @@ -76,8 +76,8 @@ public class HopHandler { for (Location destinationLocation : hopper.getLinkedBlocks()) { if (destinationLocation == null) continue; - if (!destinationLocation.getWorld().isChunkLoaded(destinationLocation.getBlockX(), - destinationLocation.getBlockZ())) + if (!destinationLocation.getWorld().isChunkLoaded(destinationLocation.getBlockX() >> 4, + destinationLocation.getBlockZ() >> 4)) continue; Block destinationBlock = destinationLocation.getBlock();