Fix shift-clicking stacks from buffer not matching vanilla slot
insertion order
This commit is contained in:
parent
2981bdcb07
commit
404eb27e67
|
@ -154,7 +154,8 @@ class TerminalScreenHandler(syncId: Int, playerInv: PlayerInventory, val termina
|
||||||
val result = slot.stack.copy()
|
val result = slot.stack.copy()
|
||||||
|
|
||||||
if (isBufferSlot(slotId)) {
|
if (isBufferSlot(slotId)) {
|
||||||
if (!insertItem(slot.stack, playerSlotsStart, playerSlotsEnd, false)) {
|
// last boolean param is fromLast
|
||||||
|
if (!insertItem(slot.stack, playerSlotsStart, playerSlotsEnd, true)) {
|
||||||
return ItemStack.EMPTY
|
return ItemStack.EMPTY
|
||||||
}
|
}
|
||||||
if (slot.stack.isEmpty) {
|
if (slot.stack.isEmpty) {
|
||||||
|
|
Loading…
Reference in New Issue