From b5540567b6300f7f117f9c23d858865022cccb4c Mon Sep 17 00:00:00 2001 From: S-B99 Date: Sun, 10 Nov 2019 17:34:38 -0500 Subject: [PATCH] fix issue 79\#79 fix issue #79 --- .../zeroeightsix/kami/module/modules/combat/AutoTotem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoTotem.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoTotem.java index 1264059f..3805f393 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoTotem.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoTotem.java @@ -17,7 +17,7 @@ public class AutoTotem extends Module { int totems; boolean moving = false; boolean returnI = false; - private Setting soft = register(Settings.b("Soft")); + private Setting force = register(Settings.b("Force")); @Override public void onUpdate() { @@ -36,7 +36,7 @@ public class AutoTotem extends Module { totems = mc.player.inventory.mainInventory.stream().filter(itemStack -> itemStack.getItem() == Items.TOTEM_OF_UNDYING).mapToInt(ItemStack::getCount).sum(); if (mc.player.getHeldItemOffhand().getItem() == Items.TOTEM_OF_UNDYING) totems++; else { - if (soft.getValue() && !mc.player.getHeldItemOffhand().isEmpty) return; + if (!force.getValue() && !mc.player.getHeldItemOffhand().isEmpty) return; if (moving) { mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, mc.player); moving = false; @@ -54,7 +54,7 @@ public class AutoTotem extends Module { if (t == -1) return; // Should never happen! mc.playerController.windowClick(0, t < 9 ? t + 36 : t, 0, ClickType.PICKUP, mc.player); moving = true; - } else if (!soft.getValue()) { + } else if (force.getValue()) { int t = -1; for (int i = 0; i < 45; i++) if (mc.player.inventory.getStackInSlot(i).isEmpty) {