mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fixed Luminizers that have been bound to another Luminizer that has then been removed taking you to the place where the removed one was.
This commit is contained in:
1 parent
8f480bda6b
commit
351d78bbc9
1 file changed
+3
-2
@@ -227,8 +227,9 @@ public class TileLightRelay extends TileMod implements IWandBindable {
|
||||
worldObj.scheduleBlockUpdate(x, y, z, tile.getBlockType(), tile.getBlockType().tickRate(worldObj));
|
||||
}
|
||||
|
||||
ChunkCoordinates bind = ((TileLightRelay) tile).getBinding();
|
||||
if(bind != null) {
|
||||
TileLightRelay relay = (TileLightRelay) tile;
|
||||
ChunkCoordinates bind = relay.getBinding();
|
||||
if(bind != null && relay.isValidBinding()) {
|
||||
setExit(bind.posX, bind.posY, bind.posZ);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user