Merge pull request #1210 from Antifluxfield/patch-1

Fix #1206
This commit is contained in:
Blood-Asp 2017-09-12 20:38:56 +02:00 committed by GitHub
commit 8c46d09159
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt
} }
public boolean hasDimensionalTeleportCapability() { public boolean hasDimensionalTeleportCapability() {
return (this.mDebug) || (this.hasEgg) || (mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 1000); return (this.mDebug) || (this.hasEgg) || (mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 1000);
} }
public boolean isDimensionalTeleportAvailable() { public boolean isDimensionalTeleportAvailable() {

View file

@ -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() {