mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-12-01 14:44:09 +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
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user