Closed Madis0 closed 1 year ago
Issue also occurs with Fabric Language Kotlin 1.10.11
For some reason, OptiGUI is loaded with the default language adapter before FLK 1.10.11, and it works, but on 1.10.11, it is loaded with the Kotlin adapter, which has a bug; top level function references don't work. After looking at the git blame, it never worked. I don't know what got changed that now the Kotlin adapter gets loaded instead of the default one. I'll open an issue in the Kotlin adapter repo about this.
Loading with FLK 1.9.0:
Loading with FLK 1.10.11:
Update: this rabbit hole goes deeper than I thought. Caused by a Kotlin Reflection change.
Workaround: roll back to Fabric Kotlin 1.10.10.
This is now fixed in Fabric Kotlin 1.10.12.
Loader and its version
Fabric Loader 0.14.24
OptiGUI version
2.1.6
Steps to reproduce
Game logs
https://mclo.gs/xgogMt1
Anything else
The instance is Fabulously Optimized 5.5.0-beta.3, but the presence of other mods is currently irrelevant here. Works on Fabric Language Kotlin 1.10.10.