fixed teleporter bug with dragon egg and nitrogen plasma (#1536)

This commit is contained in:
Zickfor 2019-06-17 00:37:24 +03:00 committed by Blood-Asp
parent 18907fdbab
commit 7b592a645c

View file

@ -234,7 +234,10 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
}
public boolean hasDimensionalTeleportCapability() {
return (this.mDebug) || (this.hasEgg) || (mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 10);
if (sInterDimensionalTeleportAllowed == true) {
return (this.mDebug) || (this.hasEgg) || (mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 10);
}
return false;
}
public boolean isDimensionalTeleportAvailable() {