
Client Crash with Alloy Template
yuesha-yc opened this issue · 4 comments
I fixed it with mixin in my modpack. But I hope you can fix it so everyone gets the fix.
The problem here is that for some users that uses local languages like Chinese and Japanese, there are no "spaces" between words. For example, "Copper Ingot" is "铜锭" in Chinese. So splitting the translated strings with "space" only results in one element in the result array, causing the issue.
There is also a hidden bug in the addInformation method, I think you have referred to wrong indexes.
I'll draft a PR for this.
Thank you for letting me know. I had figured out that the issue was related with the spacing and split array function, but I didn't realize it was due to other languages. I will merge the pull request in, but I will wait to close this and the reobf issue until the fix is actually released with the next major version (1.3) soon.
I have the same problem. The client is closed after hovering over the prepared template.
crash-2021-08-18_06.54.07-client.txt