Fix NPE of fluid check
This commit is contained in:
parent
61d0582012
commit
bab71c5349
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDimensionalTeleportCapability() {
|
public boolean hasDimensionalTeleportCapability() {
|
||||||
return (this.mDebug) || (this.hasEgg) || (mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 10);
|
return (this.mDebug) || (this.hasEgg) || (mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDimensionalTeleportAvailable() {
|
public boolean isDimensionalTeleportAvailable() {
|
||||||
|
|
Loading…
Reference in a new issue