Quick fix

This commit is contained in:
Aidan C. Brady 2013-08-19 09:45:43 -04:00
parent de10fa2d58
commit 896daa10e8

View file

@ -27,7 +27,8 @@ public class TileEntityLogisticalTransporter extends TileEntityTransmitter<Inven
{
if(theNetwork == null && createIfNull)
{
TileEntity[] adjacentTransporters = CableUtils.getConnectedCables(this);
TileEntity[] adjacentTransporters = TransporterUtils.getConnectedTransporters(this);
HashSet<InventoryNetwork> connectedNets = new HashSet<InventoryNetwork>();
for(TileEntity transporter : adjacentTransporters)
@ -37,6 +38,7 @@ public class TileEntityLogisticalTransporter extends TileEntityTransmitter<Inven
connectedNets.add(((ITransmitter<InventoryNetwork>)transporter).getNetwork());
}
}
if(connectedNets.size() == 0 || worldObj.isRemote)
{
theNetwork = new InventoryNetwork(this);