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:
Vasco Lavos committed 2015-12-19 18:38:52 +00:00
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;
}