From af8f29ccd371cde4894de4655c515b948fd57918 Mon Sep 17 00:00:00 2001 From: __felix__ <134875831+felixfour@users.noreply.github.com> Date: Thu, 5 Mar 2026 06:14:09 -0500 Subject: [PATCH] combine if statements --- src/main/java/tb/common/tile/TileOverchanter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/tb/common/tile/TileOverchanter.java b/src/main/java/tb/common/tile/TileOverchanter.java index ae4621a..bf21020 100644 --- a/src/main/java/tb/common/tile/TileOverchanter.java +++ b/src/main/java/tb/common/tile/TileOverchanter.java @@ -69,8 +69,8 @@ public class TileOverchanter extends TileEntity implements IInventory, IWandable enchantingTime = 0; // renderedLightning = null; } else { - if (this.isEnchantingStarted) { - if (this.worldObj.getTotalWorldTime() % 20 == 0) { + if (this.isEnchantingStarted + && this.worldObj.getTotalWorldTime() % 20 == 0) { // renderedLightning = new Lightning(this.worldObj.rand, new Coord3D(0,0,0), new // Coord3D(MathUtils.randomDouble(this.worldObj.rand)/50,MathUtils.randomDouble(this.worldObj.rand)/50,MathUtils.randomDouble(this.worldObj.rand)/50), // 0.3F, 1,0,1); @@ -154,7 +154,6 @@ public class TileOverchanter extends TileEntity implements IInventory, IWandable } else { --enchantingTime; } - } } } }