I won't tell if you won't

This commit is contained in:
Auxilor
2023-05-18 17:15:22 +01:00
parent 7c2504311e
commit d38e0f815e

View File

@@ -23,7 +23,8 @@ val ItemStack?.ecoItem: EcoItem?
val FastItemStack.ecoItem: EcoItem?
get() {
val pdc = this.persistentDataContainer
if (pdc.has(legacyKey)) {
if (pdc.get(legacyKey, PersistentDataType.STRING) != null) {
pdc.remove(legacyKey)
pdc.set(key, PersistentDataType.STRING, pdc.get(legacyKey, PersistentDataType.STRING)!!)
}