#2807 Fix bugs with telepad formation

This commit is contained in:
tterrag1098 committed 2016-01-18 15:29:38 -05:00
1 parent 073a1fd020
commit 864c60e17e
1 file changed
+13 -1
@@ -418,7 +418,19 @@ public class TileTelePad extends TileTravelAnchor implements IInternalPowerRecei
@Override
public boolean isMaster() {
return connections.size() == 4;
if (connections.size() == 4) {
BlockCoord pos = new BlockCoord(this);
for (ForgeDirection f : connections) {
TileEntity te = pos.getLocation(f).getTileEntity(worldObj);
if (!(te instanceof TileTelePad)) {
return true;
}
if (((TileTelePad)te).connections.size() < 4) {
return true;
}
}
}
return false;
}
@Override