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,8 +234,11 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
}
public boolean hasDimensionalTeleportCapability() {
if (sInterDimensionalTeleportAllowed == true) {
return (this.mDebug) || (this.hasEgg) || (mFluid != null && mFluid.isFluidEqual(Materials.Nitrogen.getPlasma(1)) && mFluid.amount >= 10);
}
return false;
}
public boolean isDimensionalTeleportAvailable() {
return (this.mDebug) || ((hasDimensionalTeleportCapability()) && (GT_Utility.isRealDimension(this.mTargetD)) && (GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)));