feat: Add more debug logging to resource reloads
This commit is contained in:
@@ -100,12 +100,12 @@ object CustomGlobalTextures : SinglePreparationResourceReloader<CustomGlobalText
|
|||||||
manager.getResource(Identifier.of(key.namespace, "filters/screen/${key.path}.json"))
|
manager.getResource(Identifier.of(key.namespace, "filters/screen/${key.path}.json"))
|
||||||
.getOrNull()
|
.getOrNull()
|
||||||
?: return@mapNotNull runNull {
|
?: 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 =
|
val screenFilter =
|
||||||
Firmament.tryDecodeJsonFromStream<ScreenFilter>(guiClassResource.inputStream)
|
Firmament.tryDecodeJsonFromStream<ScreenFilter>(guiClassResource.inputStream)
|
||||||
.getOrElse { ex ->
|
.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
|
return@mapNotNull null
|
||||||
}
|
}
|
||||||
ItemOverrideCollection(screenFilter, it.value.map { it.second })
|
ItemOverrideCollection(screenFilter, it.value.map { it.second })
|
||||||
|
|||||||
Reference in New Issue
Block a user