From 675ffd8a0d71d1ecfc7f84ad3392b204905987dc Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Mon, 29 Jul 2013 06:33:24 -0400 Subject: [PATCH] Fixed a NPE crash on network reading tiles Forgot to check for null when pulling all the info from the network parts. --- .../dark/core/network/fluid/NetworkFluidContainers.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/minecraft/dark/core/network/fluid/NetworkFluidContainers.java b/src/minecraft/dark/core/network/fluid/NetworkFluidContainers.java index c0a8f2777..cc15da7af 100644 --- a/src/minecraft/dark/core/network/fluid/NetworkFluidContainers.java +++ b/src/minecraft/dark/core/network/fluid/NetworkFluidContainers.java @@ -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;