diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-12 17:38:01 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-12 17:38:01 +0100 |
commit | 383e2b8f7d529ef09496b1407a3cdee6dfc587b6 (patch) | |
tree | 458607c6a5dc7e153471ef3fb21d2ed421ff6551 | |
parent | eb219efe1fd54edf066350878ecf64eccc200dc5 (diff) | |
download | Firmament-383e2b8f7d529ef09496b1407a3cdee6dfc587b6.tar.gz Firmament-383e2b8f7d529ef09496b1407a3cdee6dfc587b6.tar.bz2 Firmament-383e2b8f7d529ef09496b1407a3cdee6dfc587b6.zip |
feat: Add more debug logging to resource reloads
-rw-r--r-- | src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomGlobalTextures.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomGlobalTextures.kt b/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomGlobalTextures.kt index 02c0714..20f1fb6 100644 --- a/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomGlobalTextures.kt +++ b/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomGlobalTextures.kt @@ -100,12 +100,12 @@ object CustomGlobalTextures : SinglePreparationResourceReloader<CustomGlobalText manager.getResource(Identifier.of(key.namespace, "filters/screen/${key.path}.json")) .getOrNull() ?: return@mapNotNull runNull { - ErrorUtil.softError("Failed to locate screen filter at $key") + ErrorUtil.softError("Failed to locate screen filter at $key used by ${it.value.map { it.first }}") } val screenFilter = Firmament.tryDecodeJsonFromStream<ScreenFilter>(guiClassResource.inputStream) .getOrElse { ex -> - ErrorUtil.softError("Failed to load screen filter at $key", ex) + ErrorUtil.softError("Failed to load screen filter at $key used by ${it.value.map { it.first }}", ex) return@mapNotNull null } ItemOverrideCollection(screenFilter, it.value.map { it.second }) |