diff options
author | minecraft7771 <maxim235@gmx.de> | 2023-02-19 13:14:18 +0100 |
---|---|---|
committer | minecraft7771 <maxim235@gmx.de> | 2023-02-19 13:14:18 +0100 |
commit | cd3b48899b70ed735070d15378c63fb9aac78967 (patch) | |
tree | 9ca1ecd2326d7ed6e7e545de745213856812729a | |
parent | e0b0c530e575ad476ce2255896d50804d56adffb (diff) | |
download | GT5-Unofficial-cd3b48899b70ed735070d15378c63fb9aac78967.tar.gz GT5-Unofficial-cd3b48899b70ed735070d15378c63fb9aac78967.tar.bz2 GT5-Unofficial-cd3b48899b70ed735070d15378c63fb9aac78967.zip |
Only allow changing of renderer when debug mode is enabled
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. |