diff options
Diffstat (limited to 'src/main/java/at')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt index 2aa1ec65a..7346d4310 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt @@ -7,5 +7,5 @@ class InventoryCloseEvent(val inventory: OtherInventoryData.Inventory): LorenzEv val inventoryId: Int by lazy { inventory.windowId } val inventoryName: String by lazy {inventory.title } val inventorySize: Int by lazy {inventory.slotCount } - val inventoryItems: MutableMap<Int, ItemStack> by lazy {inventory.items } + val inventoryItems: Map<Int, ItemStack> by lazy {inventory.items } }
\ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt index 3c95e4507..0b894d87e 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt @@ -7,7 +7,7 @@ open class BaseInventoryOpenEvent(inventory: OtherInventoryData.Inventory): Lore val inventoryId: Int by lazy { inventory.windowId } val inventoryName: String by lazy {inventory.title } val inventorySize: Int by lazy {inventory.slotCount } - val inventoryItems: MutableMap<Int, ItemStack> by lazy {inventory.items } + val inventoryItems: Map<Int, ItemStack> by lazy {inventory.items } } class InventoryOpenEvent(inventory: OtherInventoryData.Inventory): BaseInventoryOpenEvent(inventory) diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt index c7ea644cb..10ecc6df0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt @@ -103,7 +103,7 @@ class GardenNextJacobContest { } } - private fun readCalendar(items: MutableCollection<ItemStack>, year: Int, month: Int) { + private fun readCalendar(items: Collection<ItemStack>, year: Int, month: Int) { if (contests.isNotEmpty()) { val contest = contests.values.first() val endTime = contest.endTime |