Skip to content

Commit

Permalink
Update ResourceGeneration.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Nov 15, 2024
1 parent 381a432 commit 59e4845
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import xyz.xenondevs.nova.world.item.DefaultBlockOverlays
import xyz.xenondevs.nova.world.item.DefaultGuiItems
import xyz.xenondevs.nova.world.item.DefaultItems
import java.security.MessageDigest
import kotlin.io.path.notExists

private const val FORCE_REBUILD_FLAG = "NovaForceRegenerateResourcePack"
private const val VERSION_HASH = "version_hash"
Expand Down Expand Up @@ -55,7 +54,7 @@ internal object ResourceGeneration {
private fun init() {
versionHash = calculateVersionHash()
if (System.getProperty(FORCE_REBUILD_FLAG) != null
|| ResourcePackBuilder.RESOURCE_PACK_FILE.notExists()
|| !ResourcePackBuilder.RESOURCE_PACK_FILE.exists()
|| PermanentStorage.retrieveOrNull<String>(VERSION_HASH) != versionHash
|| !ResourceLookups.hasAllLookups()
|| !ResourceLookups.tryLoadAll()
Expand Down

0 comments on commit 59e4845

Please sign in to comment.