Fixed DataSlotTank not changing to empty state

This commit is contained in:
bdew committed 2014-01-18 19:00:07 +02:00
1 parent c4dbda8a20
commit 0b94b006ec
1 file changed
+1
+1
View File
@@ -42,6 +42,7 @@ abstract class DataSlotTankBase(sz: Int) extends FluidTank(sz) with IFluidTank w
}
def load(t: NBTTagCompound, k: UpdateKind.Value) {
setFluid(null)
val tag = t.getCompoundTag(name)
readFromNBT(tag)
if (k == UpdateKind.GUI)