1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-18 13:15:13 +00:00
This commit is contained in:
Leijurv 2018-12-09 19:25:00 -08:00
parent 1d0413f159
commit bca6a580e3
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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