TileNetwork capability now working in full, fixed up Logistical Transporter packet management

This commit is contained in:
aidancbrady committed 2016-05-23 12:34:42 -04:00
1 parent 87910ba233
commit 4ddcb151a1
10 files changed
+98 -37

No files matched your search

@@ -49,9 +49,11 @@ public class PacketDataRequest implements IMessageHandler<DataRequestMessage, IM
}
}
if(tileEntity instanceof ITileNetwork)
if(MekanismUtils.hasCapability(tileEntity, Capabilities.TILE_NETWORK_CAPABILITY, null))
{
Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(tileEntity), ((ITileNetwork)tileEntity).getNetworkedData(new ArrayList<Object>())), (EntityPlayerMP)player);
ITileNetwork network = MekanismUtils.getCapability(tileEntity, Capabilities.TILE_NETWORK_CAPABILITY, null);
Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(tileEntity), network.getNetworkedData(new ArrayList<Object>())), (EntityPlayerMP)player);
}
}