From 8bc87268ac43b769e84989d6e62753710895ffba Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 28 Apr 2023 20:49:53 +0200 Subject: Code cleanup --- src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt | 2 +- src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt | 2 +- .../at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 2 +- 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 by lazy {inventory.items } + val inventoryItems: Map 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 by lazy {inventory.items } + val inventoryItems: Map 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, year: Int, month: Int) { + private fun readCalendar(items: Collection, year: Int, month: Int) { if (contests.isNotEmpty()) { val contest = contests.values.first() val endTime = contest.endTime -- cgit