aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2023-02-19 15:45:37 +0100
committerGitHub <noreply@github.com>2023-02-19 15:45:37 +0100
commitf1f15c9297538e07f79944fe434aad33c4da193f (patch)
tree9ca1ecd2326d7ed6e7e545de745213856812729a /src/main/java/com
parente0b0c530e575ad476ce2255896d50804d56adffb (diff)
parentcd3b48899b70ed735070d15378c63fb9aac78967 (diff)
downloadGT5-Unofficial-f1f15c9297538e07f79944fe434aad33c4da193f.tar.gz
GT5-Unofficial-f1f15c9297538e07f79944fe434aad33c4da193f.tar.bz2
GT5-Unofficial-f1f15c9297538e07f79944fe434aad33c4da193f.zip
Merge pull request #162 from GTNewHorizons/fix/EoHRenderDebugTool
Fix/EoHRenderDebugTool
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/EyeOfHarmonyBlock.java4
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/block/EyeOfHarmonyBlock.java b/src/main/java/com/github/technus/tectech/thing/block/EyeOfHarmonyBlock.java
index 4fd0867078..2f6a3f4e5c 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/EyeOfHarmonyBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/EyeOfHarmonyBlock.java
@@ -9,6 +9,7 @@ import net.minecraft.util.ChatComponentText;
import net.minecraft.world.World;
import com.github.technus.tectech.TecTech;
+import com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_EyeOfHarmony;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
@@ -65,6 +66,9 @@ public class EyeOfHarmonyBlock extends Block {
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_,
float p_149727_7_, float p_149727_8_, float p_149727_9_) {
+
+ if (!GT_MetaTileEntity_EM_EyeOfHarmony.EOH_DEBUG_MODE) return false;
+
TileEyeOfHarmony tile = (TileEyeOfHarmony) world.getTileEntity(x, y, z);
if (player.isSneaking()) {
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java
index 1656dbc42a..6bd8ee639c 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java
@@ -58,7 +58,7 @@ import gregtech.common.tileentities.machines.GT_MetaTileEntity_Hatch_Output_ME;
public class GT_MetaTileEntity_EM_EyeOfHarmony extends GT_MetaTileEntity_MultiblockBase_EM
implements IConstructable, IGlobalWirelessEnergy, ISurvivalConstructable {
- private static final boolean EOH_DEBUG_MODE = false;
+ public static final boolean EOH_DEBUG_MODE = false;
private boolean disableAnimation = false;
// Region variables.