From bca6a580e310b26460bd418eeed9f220bda596b5 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 9 Dec 2018 19:25:00 -0800 Subject: [PATCH] combine --- src/main/java/baritone/behavior/InventoryBehavior.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/baritone/behavior/InventoryBehavior.java b/src/main/java/baritone/behavior/InventoryBehavior.java index 25a97965..3e0ff70b 100644 --- a/src/main/java/baritone/behavior/InventoryBehavior.java +++ b/src/main/java/baritone/behavior/InventoryBehavior.java @@ -55,13 +55,12 @@ public class InventoryBehavior extends Behavior { } private void swapWithHotBar(int inInventory, int inHotbar) { - int windowId = ctx.player().inventoryContainer.windowId; // aaaaaaaaaaaaaaaaaaaaaaaaaaaa // aaaaaaaaAAAAAAaaaaaAAaaaAAAAaaAAA if (inInventory < 9) { inInventory += 36; } - ctx.playerController().windowClick(windowId, inInventory, inHotbar, ClickType.SWAP, ctx.player()); + ctx.playerController().windowClick(ctx.player().inventoryContainer.windowId, inInventory, inHotbar, ClickType.SWAP, ctx.player()); } private int firstValidThrowaway() { // TODO offhand idk