diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-17 21:53:34 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-17 21:53:34 +0200 |
commit | 5c961f1af6593776289f5bba733657315bd71d2d (patch) | |
tree | 5d90b545f2e18521641919910ca84220337f47de /src/main | |
parent | 60a68b0c0304447b0ef6c4f07dde5c4cd95b7f51 (diff) | |
download | skyhanni-5c961f1af6593776289f5bba733657315bd71d2d.tar.gz skyhanni-5c961f1af6593776289f5bba733657315bd71d2d.tar.bz2 skyhanni-5c961f1af6593776289f5bba733657315bd71d2d.zip |
removed unnecessary extension function
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt index aec0f27cc..3e5d5f321 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt @@ -1,7 +1,6 @@ package at.hannibal2.skyhanni.data import at.hannibal2.skyhanni.SkyHanniMod -import at.hannibal2.skyhanni.data.SackItem.Companion.getStatus import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -25,7 +24,6 @@ import com.google.gson.annotations.Expose import net.minecraft.item.ItemStack import net.minecraftforge.fml.common.eventhandler.SubscribeEvent - object SackAPI { private val sackDisplayConfig get() = SkyHanniMod.feature.inventory.sackDisplay private val chatConfig get() = SkyHanniMod.feature.chat @@ -329,11 +327,7 @@ data class SackItem( @Expose val lastChange: Int, @Expose private val status: SackStatus? ) { - companion object { - fun SackItem.getStatus(): SackStatus { - return status ?: SackStatus.MISSING - } - } + fun getStatus() = status ?: SackStatus.MISSING } private val gemstoneMap = mapOf( diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt index c6b85b489..64ef4e9df 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt @@ -3,7 +3,6 @@ package at.hannibal2.skyhanni.features.garden.composter import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.data.SackAPI -import at.hannibal2.skyhanni.data.SackItem.Companion.getStatus import at.hannibal2.skyhanni.data.SackStatus import at.hannibal2.skyhanni.data.model.ComposterUpgrade import at.hannibal2.skyhanni.events.GuiRenderEvent |