diff options
author | VinDevGH <65317011+VinDevGH@users.noreply.github.com> | 2024-10-25 12:27:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 19:27:37 +0200 |
commit | 5304c190cf303c4c355ebeafdb63f84470be350e (patch) | |
tree | 3a574a6848b150498c9dbd5b5e3546994ab053c0 /src/main/java/gregtech/common/tileentities | |
parent | 94c350511d91291a9b1a4f1357be08f0893bf1c4 (diff) | |
download | GT5-Unofficial-5304c190cf303c4c355ebeafdb63f84470be350e.tar.gz GT5-Unofficial-5304c190cf303c4c355ebeafdb63f84470be350e.tar.bz2 GT5-Unofficial-5304c190cf303c4c355ebeafdb63f84470be350e.zip |
save debug mode to NBT to prevent it turning it off on game reload (#3419)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java index 916e24d1fb..54da38a7d8 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java @@ -770,4 +770,17 @@ public class MTEPurificationPlant extends MTEExtendedPowerMultiBlockBase<MTEPuri return null; })); } + + @Override + public void loadNBTData(NBTTagCompound aNBT) { + super.loadNBTData(aNBT); + debugMode = aNBT.getBoolean("debugMode"); + } + + @Override + public void saveNBTData(NBTTagCompound aNBT) { + super.saveNBTData(aNBT); + aNBT.setBoolean("debugMode", debugMode); + + } } |