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:
parent
279ede1fb2
commit
675ffd8a0d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue