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) { private void swapWithHotBar(int inInventory, int inHotbar) {
int windowId = ctx.player().inventoryContainer.windowId;
// aaaaaaaaaaaaaaaaaaaaaaaaaaaa // aaaaaaaaaaaaaaaaaaaaaaaaaaaa
// aaaaaaaaAAAAAAaaaaaAAaaaAAAAaaAAA // aaaaaaaaAAAAAAaaaaaAAaaaAAAAaaAAA
if (inInventory < 9) { if (inInventory < 9) {
inInventory += 36; 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 private int firstValidThrowaway() { // TODO offhand idk