aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-12-29 17:07:59 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-12-29 17:07:59 +1000
commit10f2b5163c09481c038cc22507ea3317e8de773a (patch)
tree6dd363c12b0f2c2ccf9923dffc3b38c4e1eb479b /src/Java/gtPlusPlus/xmod/gregtech/common
parentc818088eb463b7e93357bef0bdc756863f206cc1 (diff)
downloadGT5-Unofficial-10f2b5163c09481c038cc22507ea3317e8de773a.tar.gz
GT5-Unofficial-10f2b5163c09481c038cc22507ea3317e8de773a.tar.bz2
GT5-Unofficial-10f2b5163c09481c038cc22507ea3317e8de773a.zip
% Small change to Multitank logic.
^ Version bump to V1.4.9.22-alpha + Uploaded PlayerAPI-1.7.10-1.4.jar library file. https://minecraft.curseforge.com/projects/player-api/files/2248928
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java
index a1140f3777..e83e819207 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java
@@ -412,9 +412,16 @@ extends GregtechMeta_MultiBlockBase {
}
public int countCasings() {
+ try{
if (this.getBaseMetaTileEntity().getWorld() == null){
return 0;
- }
+ }
+ if (this.getBaseMetaTileEntity() == null){
+ return 0;
+ }
+ } catch(NullPointerException r){
+ return 0;
+ }
int xDir = ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetX;
int zDir = ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetZ;
if (!this.getBaseMetaTileEntity().getAirOffset(xDir, 0, zDir)) {