aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-28 20:49:53 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-28 20:49:53 +0200
commit8bc87268ac43b769e84989d6e62753710895ffba (patch)
tree1e9f1d18b92e7c8cea420a980e0a6569259625f8 /src/main
parentbd6a0bb93ed6c0499cc3c5e044b7554481825bb5 (diff)
downloadskyhanni-8bc87268ac43b769e84989d6e62753710895ffba.tar.gz
skyhanni-8bc87268ac43b769e84989d6e62753710895ffba.tar.bz2
skyhanni-8bc87268ac43b769e84989d6e62753710895ffba.zip
Code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/InventoryCloseEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/InventoryOpenEvent.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt2
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