mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-25 19:56:20 +01:00
endpoint fix.
This commit is contained in:
parent
a4c4d41cc6
commit
a4781b3ae7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user