diff --git a/src/main/java/gregtech/client/renderer/texture/custom/QuantumStorageRenderer.java b/src/main/java/gregtech/client/renderer/texture/custom/QuantumStorageRenderer.java index 6a755828c8e..e37d1f0c0de 100644 --- a/src/main/java/gregtech/client/renderer/texture/custom/QuantumStorageRenderer.java +++ b/src/main/java/gregtech/client/renderer/texture/custom/QuantumStorageRenderer.java @@ -113,7 +113,7 @@ public static void renderChestStack(double x, double y, double z, MetaTileEntity int range = ConfigHolder.client.fancyChestRenderDistance; if (x > range || y > range || z > range || - x < -range || y < -range ||z < -range) + x < -range || y < -range || z < -range) return; float lastBrightnessX = OpenGlHelper.lastBrightnessX; @@ -180,7 +180,7 @@ public static void renderTankFluid(CCRenderState renderState, Matrix4 translatio public static void renderTankAmount(double x, double y, double z, EnumFacing frontFacing, long amount) { int range = ConfigHolder.client.fancyChestRenderDistance; if (x > range || y > range || z > range || - x < -range || y < -range ||z < -range) + x < -range || y < -range || z < -range) return; float lastBrightnessX = OpenGlHelper.lastBrightnessX; diff --git a/src/main/java/gregtech/common/ConfigHolder.java b/src/main/java/gregtech/common/ConfigHolder.java index 960fb19f030..5909bfcd6d7 100644 --- a/src/main/java/gregtech/common/ConfigHolder.java +++ b/src/main/java/gregtech/common/ConfigHolder.java @@ -451,12 +451,12 @@ public static class ClientOptions { @Config.Comment({ "Prevent optical and laser cables from animating when active.", "Default: false" }) public boolean preventAnimatedCables = false; - @Config.Comment({"Enable the fancy rendering for Super/Quantum Chests/Tanks.", - "Default: true"}) + @Config.Comment({ "Enable the fancy rendering for Super/Quantum Chests/Tanks.", + "Default: true" }) public boolean enableFancyChestRender = true; - @Config.Comment({"The distance in blocks to stop doing special rendering for Super/Quantum Chests/Tanks.", - "Default: 9 Blocks"}) + @Config.Comment({ "The distance in blocks to stop doing special rendering for Super/Quantum Chests/Tanks.", + "Default: 9 Blocks" }) public int fancyChestRenderDistance = 9; public static class GuiConfig {