Quick fix
This commit is contained in:
parent
de10fa2d58
commit
896daa10e8
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,8 @@ public class TileEntityLogisticalTransporter extends TileEntityTransmitter<Inven
|
||||||
{
|
{
|
||||||
if(theNetwork == null && createIfNull)
|
if(theNetwork == null && createIfNull)
|
||||||
{
|
{
|
||||||
TileEntity[] adjacentTransporters = CableUtils.getConnectedCables(this);
|
TileEntity[] adjacentTransporters = TransporterUtils.getConnectedTransporters(this);
|
||||||
|
|
||||||
HashSet<InventoryNetwork> connectedNets = new HashSet<InventoryNetwork>();
|
HashSet<InventoryNetwork> connectedNets = new HashSet<InventoryNetwork>();
|
||||||
|
|
||||||
for(TileEntity transporter : adjacentTransporters)
|
for(TileEntity transporter : adjacentTransporters)
|
||||||
|
@ -37,6 +38,7 @@ public class TileEntityLogisticalTransporter extends TileEntityTransmitter<Inven
|
||||||
connectedNets.add(((ITransmitter<InventoryNetwork>)transporter).getNetwork());
|
connectedNets.add(((ITransmitter<InventoryNetwork>)transporter).getNetwork());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(connectedNets.size() == 0 || worldObj.isRemote)
|
if(connectedNets.size() == 0 || worldObj.isRemote)
|
||||||
{
|
{
|
||||||
theNetwork = new InventoryNetwork(this);
|
theNetwork = new InventoryNetwork(this);
|
||||||
|
|
Loading…
Reference in a new issue