diff options
Diffstat (limited to 'src/main/java/rosegoldaddons/features/CustomItemMacro.java')
-rw-r--r-- | src/main/java/rosegoldaddons/features/CustomItemMacro.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/rosegoldaddons/features/CustomItemMacro.java b/src/main/java/rosegoldaddons/features/CustomItemMacro.java index 750db14..41ba9a7 100644 --- a/src/main/java/rosegoldaddons/features/CustomItemMacro.java +++ b/src/main/java/rosegoldaddons/features/CustomItemMacro.java @@ -23,7 +23,6 @@ public class CustomItemMacro { if (thread == null || !thread.isAlive()) { thread = new Thread(() -> { try { - milis++; int prevItem = Minecraft.getMinecraft().thePlayer.inventory.currentItem; for (String i : UseCooldown.RCitems.keySet()) { if (milis % Math.floor(UseCooldown.RCitems.get(i)/100) == 0) { @@ -45,6 +44,7 @@ public class CustomItemMacro { } } Minecraft.getMinecraft().thePlayer.inventory.currentItem = prevItem; + milis++; Thread.sleep(100); } catch (Exception e) { e.printStackTrace(); |