From 5e4227b15cfb5ecb4e1dd868eaca23e39559c223 Mon Sep 17 00:00:00 2001 From: Dayeeet Date: Sun, 7 Jul 2024 11:46:13 +0200 Subject: [PATCH] refactor: fix bug of modification of resource packs --- build.gradle.kts | 2 +- .../dayyeeet/solid/builder/feature/ModelModifierFeature.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4c6e790..c8139ce 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "io.github.dayyeeet.solid" -version = "1.0.1" +version = "1.0.2" repositories { mavenCentral() diff --git a/src/main/kotlin/io/github/dayyeeet/solid/builder/feature/ModelModifierFeature.kt b/src/main/kotlin/io/github/dayyeeet/solid/builder/feature/ModelModifierFeature.kt index a3f44da..6297cf2 100644 --- a/src/main/kotlin/io/github/dayyeeet/solid/builder/feature/ModelModifierFeature.kt +++ b/src/main/kotlin/io/github/dayyeeet/solid/builder/feature/ModelModifierFeature.kt @@ -18,7 +18,7 @@ class ModelModifierFeature : ResourcePackFeature { map.keys.forEach { obj.addProperty(it, config.mapper(it)) } model.add("textures", obj) val modified = Writable.stringUtf8(Gson().toJson(model)) - pack.unknownFile("assets/${config.key.namespace()}/${config.key.value()}.json", modified) + pack.unknownFile("assets/${config.key.namespace()}/models/${config.key.value()}.json", modified) } object Mappers {