aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-05-23 06:38:54 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-05-23 06:38:54 +1000
commit444c226688186fb6c1aef276ecf555188cbaa782 (patch)
tree428256c620c70ec6158a52732102bf7a8b71aa4d /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
parent68b1c0598ca52f7a5d49f56c3cb55eacd195b115 (diff)
downloadGT5-Unofficial-444c226688186fb6c1aef276ecf555188cbaa782.tar.gz
GT5-Unofficial-444c226688186fb6c1aef276ecf555188cbaa782.tar.bz2
GT5-Unofficial-444c226688186fb6c1aef276ecf555188cbaa782.zip
$ Fixed Chunk Loader initialization.
% Moved various chunk handling code to be internal in ChunkManager.java.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntityChunkLoader.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntityChunkLoader.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntityChunkLoader.java
index 49901e57bc..8decbd6a91 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntityChunkLoader.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntityChunkLoader.java
@@ -268,12 +268,14 @@ public class GregtechMetaTileEntityChunkLoader extends GT_MetaTileEntity_TieredM
if (this.getBaseMetaTileEntity() != null && this.getBaseMetaTileEntity().getWorld() != null && this.getBaseMetaTileEntity().getWorld().getWorldTime() >= 100) {
if (mChunkLoaderMapID == -1) {
this.mChunkLoaderMapID = ChunkManager.getIdFromUniqueString(getUniqueID());
- Logger.INFO("["+getUniqueID()+"] Adjusted Chunk Loaders ID from -1 to "+mChunkLoaderMapID+". This chunk loader is not registered to the global list yet.");
+ Logger.INFO("["+getUniqueID()+"] Adjusted Chunk Loaders ID to "+mChunkLoaderMapID+". This chunk loader is not registered to the global list yet.");
}
else {
Logger.INFO("["+getUniqueID()+"] Found cached ID - "+mChunkLoaderMapID);
ChunkManager.setIdAndUniqueString(this.mChunkLoaderMapID, getUniqueID());
- this.mChunkLoaderMapID = ChunkManager.getIdFromUniqueString(getUniqueID()); // Just Incase the ID gets shifted.
+ // Just Incase the ID gets shifted.
+ if (this.mChunkLoaderMapID != ChunkManager.getIdFromUniqueString(getUniqueID()))
+ this.mChunkLoaderMapID = ChunkManager.getIdFromUniqueString(getUniqueID());
}
if (this != null && this.getBaseMetaTileEntity() != null) {
if (!isRegistered() && !getUniqueID().equalsIgnoreCase("0@0@0@0")) {