MinecraftTransportSimulator icon indicating copy to clipboard operation
MinecraftTransportSimulator copied to clipboard

Crash with custom resource types [1.12.2]

Open brachy84 opened this issue 6 months ago • 4 comments

Refers to https://github.com/CleanroomMC/ModularUI/issues/157. ModularUI adds a resource type which is gui theme json files. This mod only checks for vanilla resource types here and then just assumes its an item model here. Why are you not just checking startsWith("models/item")?

brachy84 avatar Nov 09 '25 11:11 brachy84

This an extension of #1952 and i just saw that it was fixed in f8a47fee40205ac0e39765917cfdacc32036d068, but again its a very primitve fix and should be fixed with a startsWith("models/item") check.

brachy84 avatar Nov 09 '25 11:11 brachy84

That check won't work since that code needs to return JSON models, item pngs, objs, and other models that are used for MTS. Not just block JSONs. Or are you saying something else that I'm not understanding?

DonBruce64 avatar Nov 10 '25 01:11 DonBruce64

The problem is that you are assuming that the file starts with models/item/ if it ends with json. Why are you not checking for both in the if here.

brachy84 avatar Nov 10 '25 12:11 brachy84

Because I didn't realize exactly what I was loading. At one time, that system shunted in pack JSON. Now it only loads MC items, not blocks even since those are handled by the mod model loader. So yes, that is a proper check. Implemented. Thanks!

DonBruce64 avatar Dec 21 '25 16:12 DonBruce64

Addressed in 23.0.0.

DonBruce64 avatar Jan 06 '26 03:01 DonBruce64