Fix off by one error

This commit is contained in:
DBotThePony 2023-08-20 20:29:15 +07:00
parent 7d05332a90
commit f26e336785
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -328,7 +328,7 @@ abstract class MatteryMenu(
addSlot(offhandSlot!!)
for (i in 0 until if (mattery.hasExopack) mattery.combinedInventory.containerSize else mattery.wrappedItemInventory.containerSize) {
if (i in Inventory.INVENTORY_SIZE .. player.inventory.containerSize) continue
if (i in Inventory.INVENTORY_SIZE until player.inventory.containerSize) continue
val slot = InventorySlot(mattery.combinedInventory, i, true)