Update InventoryGUISlots.kt

This commit is contained in:
bluefireoly
2020-10-21 17:15:40 +02:00
parent 9484bc1ce5
commit 76ea1bfab8

View File

@@ -38,7 +38,7 @@ data class InventorySlot(val row: Int, val slotInRow: Int) : Comparable<Inventor
companion object {
fun fromRealSlot(realSlot: Int, dimensions: InventoryDimensions) =
dimensions.invSlotsWithRealSlots.toList().find { it.second == realSlot }?.first
dimensions.realSlots.toList().find { it == realSlot }
}
override fun compareTo(other: InventorySlot) = when {