endpoint fix.

This commit is contained in:
Brianna O'Keefe 2018-12-29 14:09:00 -05:00
parent a4c4d41cc6
commit a4781b3ae7

View File

@ -140,10 +140,7 @@ public class HopHandler {
if (hopper.getFilter().getEndPoint() != null if (hopper.getFilter().getEndPoint() != null
&& block != null && block.getState() instanceof Hopper) { && block != null && block.getState() instanceof Hopper) {
Location dest = hopper.getFilter().getEndPoint(); Location dest = hopper.getFilter().getEndPoint();
int destx = location.getBlockX() >> 4; if (!dest.getWorld().isChunkLoaded(dest.getBlockX() >> 4, dest.getBlockZ() >> 4))
int destz = location.getBlockZ() >> 4;
if (!dest.getWorld().isChunkLoaded(destx, destz))
return; return;
Block b2 = dest.getBlock(); Block b2 = dest.getBlock();