Fixed #69
This commit is contained in:
@@ -26,10 +26,16 @@ public class TunnelConveyor extends Block{
|
|||||||
Tile tunnel = getDestTunnel(tile, item);
|
Tile tunnel = getDestTunnel(tile, item);
|
||||||
if(tunnel == null) return;
|
if(tunnel == null) return;
|
||||||
Tile to = tunnel.getNearby()[tunnel.getRotation()];
|
Tile to = tunnel.getNearby()[tunnel.getRotation()];
|
||||||
|
if(to == null) return;
|
||||||
|
Block before = to.block();
|
||||||
|
|
||||||
Timers.run(25, ()->{
|
Timers.run(25, () -> {
|
||||||
if(to == null || to.entity == null) return;
|
if(to.block() != before) return;
|
||||||
to.block().handleItem(item, to, tunnel);
|
try {
|
||||||
|
to.block().handleItem(item, to, tunnel);
|
||||||
|
}catch (NullPointerException e){
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user