Properties with UTF-8 BOM encoding not loading
The issue
I add new model to my RP mkb.json and others (look in the logs)...
- type=item
- matchItems=minecraft:netherite_sword minecraft:diamond_sword
- model=./mkb.json
- nbt.display.Name=iregex:(\u041c\u041a\u0411|MKB) mkb.properties
But the model is not displayed in the game. Errors appear in the logs - Unknown condition type "citresewn:type"
At the same time, my model "uzi" with properties:
- type=item
- matchItems=minecraft:bow
- model=./uzi.json
- nbt.display.Name=Micro-PP works great
I understand from the error text that the problem is in the "type" field. But why?..
How to reproduce
Logs
https://pastebin.com/gbE1jTDM
Checklist
- [X] I checked the issues(both open and closed) and could not find a duplicate of my issue
- [X] I am using the latest version of CIT Resewn for my Minecraft version
- [X] I have disabled Broken Paths and the issue persists
- [X] I am running the mod using Fabric Loader
If u would use sinytra connecter than that is the problem, connector is not officially supported. But checklist says u are using Fabric Loader dn logs also saying Using legacy nbt.display.Name which would not appear in case with connector.
And Im sure that this bit of logs is not helpful, u probably would like to send the whole log file if u want the problem to be resolved.
https://mclo.gs/woWlSKR full logs
The files are encoded with something called "UTF-8 BOM" instead of the normal UTF-8. As a hotfix you can just save the file with a different encoding.
Leaving the issue open until I fix the issue where it doesnt load it when it should've.
Yes, it helped me Thanks!