[CRASH] Crash when parsing OptiFine properties for a trader llama (Invalid llama carpet colors)
TheRainbowDerp06 opened this issue ยท 1 comments
Loader and its version
Fabric loader 0.17.2
OptiGUI version
2.3.0-beta.8+1.21.9
Steps to reproduce
The game crashes when loading a resource pack that contains an OptiFine properties file for a trader llama with an invalid value. Instead of ignoring the invalid property and logging a warning, OptiGUI throws a fatal RuntimeException, causing the client to crash.
This occurs on game startup or whenever resource packs are reloaded.
Game logs
[Render thread/ERROR]: No filter was created for container `minecraft:llama` in `minecraft:optifine/gui/container/horse/llama/trader_llama.properties`, because selector `llama.colors=trader_llama` threw an exception
java.lang.RuntimeException: Invalid llama carpet colors: `trader_llama`
at knot/opekope2.optigui.internal.selector.LlamaCarpetColorSelector.parseFailed(HorseSelectors.kt:80) ~[optigui-2.3.0-beta.8+1.21.9.jar:?]
at knot/opekope2.optigui.internal.selector.AbstractListSelector.createFilter(AbstractListSelector.kt:23) ~[optigui-2.3.0-beta.8+1.21.9.jar:?]
at knot/opekope2.optigui.internal.FilterLoader.createFilters(FilterLoader.kt:146) ~[optigui-2.3.0-beta.8+1.21.9.jar:?]
at knot/opekope2.optigui.internal.FilterLoader.loadFilters(FilterLoader.kt:75) ~[optigui-2.3.0-beta.8+1.21.9.jar:?]
Anything else
No response
I can't find colors=trader_llama in OptiFine documentation.
The error is logged here, and when I try to reproduce it, the game window doesn't close, I can play the game just fine. What you sent is a snippet of the log, not a crash report.