From 0a1525462b811fc89d43fe2ba349fde86337fe4c Mon Sep 17 00:00:00 2001 From: Bella Date: Fri, 21 Feb 2020 15:01:19 -0500 Subject: [PATCH] fix docking when in mc texture --- .../zeroeightsix/kami/module/modules/gui/InventoryViewer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/gui/InventoryViewer.java b/src/main/java/me/zeroeightsix/kami/module/modules/gui/InventoryViewer.java index c205cee5..57a94447 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/gui/InventoryViewer.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/gui/InventoryViewer.java @@ -28,6 +28,7 @@ public class InventoryViewer extends Module { private Setting viewSizeSetting = register(Settings.enumBuilder(ViewSize.class).withName("Icon Size").withValue(ViewSize.LARGE).withVisibility(v -> !mcTexture.getValue()).build()); private Setting showIcon = register(Settings.booleanBuilder("Show Icon").withValue(true).withVisibility(v -> !mcTexture.getValue()).build()); private Setting colorBackground = register(Settings.booleanBuilder("Colored Background").withValue(true).withVisibility(v -> !mcTexture.getValue()).build()); + private Setting docking = register(Settings.booleanBuilder("Automatic Docking").withValue(true).withVisibility(v -> !mcTexture.getValue()).build()); private Setting a = register(Settings.integerBuilder("Transparency").withMinimum(0).withValue(32).withMaximum(255).withVisibility(v -> !mcTexture.getValue()).build()); private Setting r = register(Settings.integerBuilder("Red").withMinimum(0).withValue(155).withMaximum(255).withVisibility(v -> !mcTexture.getValue()).build()); private Setting g = register(Settings.integerBuilder("Green").withMinimum(0).withValue(144).withMaximum(255).withVisibility(v -> !mcTexture.getValue()).build()); @@ -53,12 +54,14 @@ public class InventoryViewer extends Module { } private int invMoveHorizontal() { + if (!docking.getValue() || mcTexture.getValue()) return 0; if (isLeft) return 45; if (isRight) return -45; return 0; } private int invMoveVertical() { + if (!docking.getValue() || mcTexture.getValue()) return 0; if (isTop) return 10; if (isBottom) return -10; return 0;