From cef4bdb033935a5af93fffd7b7e57ce47419e086 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Jul 2023 15:50:44 +0700 Subject: [PATCH] Holy shit --- .../item/exopack/ExoPackSlotUpgradeItem.kt | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/item/exopack/ExoPackSlotUpgradeItem.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/item/exopack/ExoPackSlotUpgradeItem.kt index d029c75fe..dbd9535b9 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/item/exopack/ExoPackSlotUpgradeItem.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/item/exopack/ExoPackSlotUpgradeItem.kt @@ -9,7 +9,6 @@ import java.util.UUID class ExoPackSlotUpgradeItem : AbstractExoPackSlotUpgradeItem { val hasDescription: Boolean val slotCount: Int - val isCreative: Boolean private val uuidProvider: () -> UUID? @@ -25,31 +24,15 @@ class ExoPackSlotUpgradeItem : AbstractExoPackSlotUpgradeItem { return slotCount } - constructor(slotCount: Int, properties: Properties = defaultProperties(), hasDescription: Boolean = false) : super(properties) { - isCreative = false - this.slotCount = slotCount - this.uuidProvider = lazy { registryName!!.toUUID() }::value - this.hasDescription = hasDescription - } - - constructor(uuid: UUID?, slotCount: Int, properties: Properties = defaultProperties(), hasDescription: Boolean = false) : super(properties) { - isCreative = uuid == null - this.slotCount = slotCount - this.uuidProvider = { UUID(0L, 0L) } - this.hasDescription = hasDescription - } - constructor(slotCount: Int, rarity: Rarity, hasDescription: Boolean = false) : super(defaultProperties(rarity)) { - isCreative = false this.slotCount = slotCount this.uuidProvider = lazy { registryName!!.toUUID() }::value this.hasDescription = hasDescription } constructor(uuid: UUID?, slotCount: Int, rarity: Rarity, hasDescription: Boolean = false) : super(defaultProperties(rarity)) { - isCreative = uuid == null this.slotCount = slotCount - this.uuidProvider = { UUID(0L, 0L) } + this.uuidProvider = { uuid } this.hasDescription = hasDescription } }