From 7b592a645c91bd5f3ef76189af7936908b427301 Mon Sep 17 00:00:00 2001 From: Zickfor <31880486+Zickfor@users.noreply.github.com> Date: Mon, 17 Jun 2019 00:37:24 +0300 Subject: [PATCH] fixed teleporter bug with dragon egg and nitrogen plasma (#1536) --- .../machines/basic/GT_MetaTileEntity_Teleporter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java index 9261e1b7..bf0693ea 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Teleporter.java @@ -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() {