Update InventoryGUISlots.kt
This commit is contained in:
@@ -38,7 +38,7 @@ data class InventorySlot(val row: Int, val slotInRow: Int) : Comparable<Inventor
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromRealSlot(realSlot: Int, dimensions: InventoryDimensions) =
|
fun fromRealSlot(realSlot: Int, dimensions: InventoryDimensions) =
|
||||||
dimensions.realSlots.toList().find { it == realSlot }
|
dimensions.invSlotsWithRealSlots.toList().find { it.second == realSlot }?.first
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun compareTo(other: InventorySlot) = when {
|
override fun compareTo(other: InventorySlot) = when {
|
||||||
|
Reference in New Issue
Block a user