Skip to content

Commit

Permalink
Delete old files in LegacyDataConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Sep 19, 2021
1 parent fe58819 commit bf43d98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/xyz/xenondevs/nova/NovaLegacyDataConverter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import xyz.xenondevs.nova.util.data.GSON
import xyz.xenondevs.nova.util.data.Version
import xyz.xenondevs.nova.util.data.fromJson
import xyz.xenondevs.nova.util.hasNovaData
import java.io.File
import java.util.*

private fun ArmorStand.getTileEntityData() =
Expand Down Expand Up @@ -61,6 +62,8 @@ object NovaLegacyDataConverter : Listener {
Bukkit.getWorlds().flatMap { it.loadedChunks.asList() }.forEach(::convertChunk)
if (IS_VERSION_CHANGE) {
PermanentStorage.remove("placedTileEntities")
File(NOVA.dataFolder, "config.json").delete()
File(NOVA.dataFolder, "defaultConfigValues.do-not-edit").delete()
}
}

Expand Down

0 comments on commit bf43d98

Please sign in to comment.