fixed teleporter bug with dragon egg and nitrogen plasma (#1536)
This commit is contained in:
parent
18907fdbab
commit
7b592a645c
1 changed files with 4 additions and 1 deletions
|
@ -234,8 +234,11 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDimensionalTeleportCapability() {
|
public boolean hasDimensionalTeleportCapability() {
|
||||||
|
if (sInterDimensionalTeleportAllowed == true) {
|
||||||
return (this.mDebug) || (this.hasEgg) || (mFluid != null && 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);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isDimensionalTeleportAvailable() {
|
public boolean isDimensionalTeleportAvailable() {
|
||||||
return (this.mDebug) || ((hasDimensionalTeleportCapability()) && (GT_Utility.isRealDimension(this.mTargetD)) && (GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)));
|
return (this.mDebug) || ((hasDimensionalTeleportCapability()) && (GT_Utility.isRealDimension(this.mTargetD)) && (GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId)));
|
||||||
|
|
Loading…
Reference in a new issue