Fix offhand quick moving is not working

This commit is contained in:
DBotThePony 2022-09-08 19:44:42 +07:00
parent b53d19308e
commit d91232b537
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -135,7 +135,7 @@ class ExoSuitInventoryMenu(val capability: MatteryPlayerCapability) : MatteryMen
return copy
else
return ItemStack.EMPTY
} else if (craftingSlots.any { it.index == slotIndex }) {
} else if (craftingSlots.any { it.index == slotIndex } || offhandSlot.index == slotIndex) {
val copy = slots[slotIndex].item.copy()
if (moveItemStackTo(slots[slotIndex], playerInventorySlots))