Fixed a NPE crash on network reading tiles

Forgot to check for null when pulling all the info from the network
parts.
This commit is contained in:
DarkGuardsman 2013-07-29 06:33:24 -04:00
parent 279ede1fb2
commit 675ffd8a0d

View file

@ -34,6 +34,10 @@ public class NetworkFluidContainers extends NetworkFluidTiles
@Override
public void writeDataToTiles()
{
if(this.combinedStorage() == null || this.combinedStorage().getFluid() == null)
{
return;
}
int fluid = this.combinedStorage().getFluid().fluidID;
int volume = Math.abs(this.combinedStorage().getFluid().amount);
NBTTagCompound tag = this.combinedStorage().getFluid().tag;