From 896e03d13b12cf242863f413cd80a14141f17409 Mon Sep 17 00:00:00 2001 From: Technus Date: Mon, 21 Nov 2016 18:43:14 +0100 Subject: [PATCH 1/4] Revert "Not needed" This reverts commit d5d03c40c130f04381dca60e8f5200fac7478b12. --- src/main/java/gregtech/common/gui/GT_Container_Teleporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java b/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java index 58c0f6f4..d804d3ba 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java +++ b/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java @@ -132,7 +132,7 @@ public class GT_Container_Teleporter var1.sendProgressBarUpdate(this, 105, this.mTargetZ >>> 16); var1.sendProgressBarUpdate(this, 106, this.mTargetD & 0xFFFF); var1.sendProgressBarUpdate(this, 107, this.mTargetD >>> 16); - //var1.sendProgressBarUpdate(this, 108, 1); + var1.sendProgressBarUpdate(this, 108, 1); } } From 349f1dbe44eacbcf08d7932975ec291995032004 Mon Sep 17 00:00:00 2001 From: Technus Date: Mon, 21 Nov 2016 18:43:22 +0100 Subject: [PATCH 2/4] Revert "Fix" This reverts commit 92c22ca6811613e7e165d5e93649320006d962ff. --- .../gregtech/common/gui/GT_Container_Teleporter.java | 10 +++++----- .../common/gui/GT_GUIContainer_Teleporter.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java b/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java index d804d3ba..f655c2d2 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java +++ b/src/main/java/gregtech/common/gui/GT_Container_Teleporter.java @@ -16,7 +16,7 @@ import java.util.Iterator; public class GT_Container_Teleporter extends GT_ContainerMetaTile_Machine { - //public int mEgg = 0; + public int mEgg = 0; public int mTargetD = 0; public int mTargetZ = 0; public int mTargetY = 0; @@ -119,7 +119,7 @@ public class GT_Container_Teleporter this.mTargetY = ((GT_MetaTileEntity_Teleporter) this.mTileEntity.getMetaTileEntity()).mTargetY; this.mTargetZ = ((GT_MetaTileEntity_Teleporter) this.mTileEntity.getMetaTileEntity()).mTargetZ; this.mTargetD = ((GT_MetaTileEntity_Teleporter) this.mTileEntity.getMetaTileEntity()).mTargetD; - //this.mEgg = (((GT_MetaTileEntity_Teleporter) this.mTileEntity.getMetaTileEntity()).hasDimensionalTeleportCapability() ? 1 : 0); + this.mEgg = (((GT_MetaTileEntity_Teleporter) this.mTileEntity.getMetaTileEntity()).hasDimensionalTeleportCapability() ? 1 : 0); Iterator var2 = this.crafters.iterator(); while (var2.hasNext()) { @@ -132,7 +132,7 @@ public class GT_Container_Teleporter var1.sendProgressBarUpdate(this, 105, this.mTargetZ >>> 16); var1.sendProgressBarUpdate(this, 106, this.mTargetD & 0xFFFF); var1.sendProgressBarUpdate(this, 107, this.mTargetD >>> 16); - var1.sendProgressBarUpdate(this, 108, 1); + var1.sendProgressBarUpdate(this, 108, this.mEgg); } } @@ -164,8 +164,8 @@ public class GT_Container_Teleporter case 107: this.mTargetD = (this.mTargetD & 0xFFFF | par2 << 16); break; - //case 108: - // this.mEgg = par2; + case 108: + this.mEgg = par2; } } } diff --git a/src/main/java/gregtech/common/gui/GT_GUIContainer_Teleporter.java b/src/main/java/gregtech/common/gui/GT_GUIContainer_Teleporter.java index 095e1b66..5f89f60e 100644 --- a/src/main/java/gregtech/common/gui/GT_GUIContainer_Teleporter.java +++ b/src/main/java/gregtech/common/gui/GT_GUIContainer_Teleporter.java @@ -19,10 +19,10 @@ public class GT_GUIContainer_Teleporter this.fontRendererObj.drawString("X: " + GT_Utility.parseNumberToString(((GT_Container_Teleporter) this.mContainer).mTargetX), 46, 16, 16448255); this.fontRendererObj.drawString("Y: " + GT_Utility.parseNumberToString(((GT_Container_Teleporter) this.mContainer).mTargetY), 46, 24, 16448255); this.fontRendererObj.drawString("Z: " + GT_Utility.parseNumberToString(((GT_Container_Teleporter) this.mContainer).mTargetZ), 46, 32, 16448255); - //if (((GT_Container_Teleporter) this.mContainer).mEgg > 0) { + if (((GT_Container_Teleporter) this.mContainer).mEgg > 0) { this.fontRendererObj.drawString("Dim: " + GT_Utility.parseNumberToString(((GT_Container_Teleporter) this.mContainer).mTargetD), 46, 40, 16448255); this.fontRendererObj.drawString("Dim Valid: " + (GT_Utility.isRealDimension(((GT_Container_Teleporter) this.mContainer).mTargetD) ? "Yes":"No"), 46, 48, 16448255); - //} + } } } From dcf3083a68adb54de4212a0118df1cda958c00db Mon Sep 17 00:00:00 2001 From: Technus Date: Mon, 21 Nov 2016 18:46:50 +0100 Subject: [PATCH 3/4] Moare stable fix --- .../machines/basic/GT_MetaTileEntity_Teleporter.java | 2 ++ 1 file changed, 2 insertions(+) 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 e8b7f90e..95437783 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 @@ -215,6 +215,8 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank { } } } + + public boolean hasDimensionalTeleportCapability() {return true;} public boolean isDimensionalTeleportAvailable() { return (this.mDebug) || ((GT_Utility.isRealDimension(this.mTargetD)) && (GT_Utility.isRealDimension(getBaseMetaTileEntity().getWorld().provider.dimensionId))); From 16c225db1b54f60565955aaa109dc6e4888b64bf Mon Sep 17 00:00:00 2001 From: Dream-Master Date: Mon, 21 Nov 2016 18:50:09 +0100 Subject: [PATCH 4/4] bump version --- build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.properties b/build.properties index ef38f20d..0c26e24d 100644 --- a/build.properties +++ b/build.properties @@ -1,7 +1,7 @@ minecraft.version=1.7.10 forge.version=10.13.4.1566-1.7.10 -gt.version=5.09.26.11 +gt.version=5.09.26.12 ae2.version=rv2-beta-33 applecore.version=1.7.10-1.2.1+107.59407