Skip to content

Commit

Permalink
fix: parent-models not being properly obfuscated
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Aug 9, 2024
1 parent d1a3964 commit fe5fd5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class PackObfuscator(private val resourcePack: ResourcePack) {

return toBuilder().parent(
obfuscatedModels.findObf(parent)?.key()
?: ResourcePacks.defaultVanillaResourcePack?.model(parent)?.let { return this }
?: resourcePack.takeUnless { parent == key() }?.model(parent)?.let(::obfuscateModel)?.key()
?: parent
).build()
Expand Down

0 comments on commit fe5fd5d

Please sign in to comment.