mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
#2807 Fix bugs with telepad formation
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user