aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-10-09 16:39:55 +0800
committerGitHub <noreply@github.com>2022-10-09 10:39:55 +0200
commite1d45a521266a6f2c4d9751950b349bb5bedca77 (patch)
treee2fc01c57c29e4ce8173f23948356af65e7a63d2
parenteca34fb26980e69771c594ca305cf6edc693c31c (diff)
downloadGT5-Unofficial-e1d45a521266a6f2c4d9751950b349bb5bedca77.tar.gz
GT5-Unofficial-e1d45a521266a6f2c4d9751950b349bb5bedca77.tar.bz2
GT5-Unofficial-e1d45a521266a6f2c4d9751950b349bb5bedca77.zip
only save necessary info on super tank break (#1448)
-rw-r--r--src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java
index 00057aab45..01852ebc9f 100644
--- a/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java
+++ b/src/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_DigitalTankBase.java
@@ -83,13 +83,12 @@ public abstract class GT_MetaTileEntity_DigitalTankBase extends GT_MetaTileEntit
if (mFluid != null && mFluid.amount >= 0) {
aNBT.setTag("mFluid", mFluid.writeToNBT(new NBTTagCompound()));
}
- aNBT.setBoolean("mOutputFluid", this.mOutputFluid);
- aNBT.setBoolean("mVoidOverflow", this.mVoidFluidPart);
- aNBT.setBoolean("mVoidFluidFull", this.mVoidFluidFull);
- aNBT.setBoolean("mLockFluid", mLockFluid);
+ if (mOutputFluid) aNBT.setBoolean("mOutputFluid", true);
+ if (mVoidFluidPart) aNBT.setBoolean("mVoidOverflow", true);
+ if (mVoidFluidFull) aNBT.setBoolean("mVoidFluidFull", true);
+ if (mLockFluid) aNBT.setBoolean("mLockFluid", true);
if (GT_Utility.isStringValid(lockedFluidName)) aNBT.setString("lockedFluidName", lockedFluidName);
- else aNBT.removeTag("lockedFluidName");
- aNBT.setBoolean("mAllowInputFromOutputSide", this.mAllowInputFromOutputSide);
+ if (this.mAllowInputFromOutputSide) aNBT.setBoolean("mAllowInputFromOutputSide", true);
}
super.setItemNBT(aNBT);
}