I won't tell if you won't
This commit is contained in:
@@ -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)!!)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user