diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-09-27 21:25:05 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-09-27 21:25:05 +1000 |
commit | 7d5c610d76f990ebb4c95223b399f96dca17b910 (patch) | |
tree | f48a0fbf5f0b1096b430852c3270ccc94c29800c /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation | |
parent | b19b9f631889fbf7591d87a02848cc9fc53d5a0e (diff) | |
download | GT5-Unofficial-7d5c610d76f990ebb4c95223b399f96dca17b910.tar.gz GT5-Unofficial-7d5c610d76f990ebb4c95223b399f96dca17b910.tar.bz2 GT5-Unofficial-7d5c610d76f990ebb4c95223b399f96dca17b910.zip |
$ Small bug fixes.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java index 8d11b0cb40..8a0248e85c 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java @@ -148,13 +148,19 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi @Override public void saveNBTData(final NBTTagCompound aNBT) { aNBT.setInteger("mFrequency", this.mFrequency); - aNBT.setString("mOwner", mOwner.toString()); + if (mOwner != null) + aNBT.setString("mOwner", mOwner.toString()); } @Override public void loadNBTData(final NBTTagCompound aNBT) { this.mFrequency = aNBT.getInteger("mFrequency"); - this.mOwner = UUID.fromString(aNBT.getString("mOnwer")); + try { + this.mOwner = UUID.fromString(aNBT.getString("mOnwer")); + } + catch (IllegalArgumentException i){ + + } } @Override |