diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-04-24 17:55:18 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-04-24 17:55:18 +1000 |
commit | ddefc4f7b11a3c0fab7f89416beac017634e58e0 (patch) | |
tree | 154fe1f000448689a9ef5c2e0d1885e3144c2f6c /src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java | |
parent | ea049ad62ba64a414fccfa5cbb875d72e7e94d00 (diff) | |
download | GT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.tar.gz GT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.tar.bz2 GT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.zip |
% More work on rewriting the Tree Farmer.
% Renamed Tree Farmer Casing.
% Cleaned up a few imports.
$ Fixed assorted minor bugs with Multis.
$ Fixed Issue with GT_Utilities via ASM.
Diffstat (limited to 'src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java')
-rw-r--r-- | src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java b/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java index 9ab0f2eefb..7c11e7232b 100644 --- a/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java +++ b/src/Java/gtPlusPlus/api/objects/minecraft/BlockPos.java @@ -42,8 +42,16 @@ public class BlockPos implements Serializable{ this.xPos = x; this.yPos = y; this.zPos = z; - this.dim = dim.provider.dimensionId; - this.world = dim; + + if (dim != null) { + this.dim = dim.provider.dimensionId; + this.world = dim; + } + else { + this.dim = 0; + this.world = null; + } + } public BlockPos(IGregTechTileEntity b) { |