combine
This commit is contained in:
parent
1d0413f159
commit
bca6a580e3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user