From fe5fd5d9f3b4ec7cb69f00b74012354d7209d703 Mon Sep 17 00:00:00 2001 From: Boy Date: Sat, 10 Aug 2024 01:13:19 +0200 Subject: [PATCH] fix: parent-models not being properly obfuscated --- src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt b/src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt index dd876ec..2fd0875 100644 --- a/src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt +++ b/src/main/kotlin/com/mineinabyss/packy/PackObfuscator.kt @@ -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()