From 8eade43a195ac74ee28880d8833eeaf7dbd7d64f Mon Sep 17 00:00:00 2001 From: Technus Date: Sat, 12 Aug 2017 15:07:28 +0200 Subject: [PATCH] Fix NPE, GREG why u no crash game! --- .../implementations/GT_MetaTileEntity_Hatch.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java index c6fa890b..f7fcda19 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java @@ -1,5 +1,7 @@ package gregtech.api.metatileentity.implementations; +import gregtech.GT_Mod; +import gregtech.api.enums.GT_Values; import gregtech.api.enums.Textures; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; @@ -66,7 +68,7 @@ public abstract class GT_MetaTileEntity_Hatch extends GT_MetaTileEntity_BasicTan actualTexture=aNBT.getByte("mMachineBlock"); mTexturePage=aNBT.getByte("mTexturePage"); - if(mTexturePage!=0 && getBaseMetaTileEntity().isServerSide()) + if(mTexturePage!=0 && GT_Values.GT.isServerSide()) actualTexture|=0x80;//<- lets just hope no one needs the correct value for that on server mMachineBlock=actualTexture; }