bit shifting

This commit is contained in:
Brianna O'Keefe 2018-12-29 14:06:02 -05:00
parent be648a4891
commit a4c4d41cc6

View File

@ -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();