sp614x / optifine

1.81k stars 418 forks source link

[CIT] CIT doesn't see models from other namespaces #4366

Open TheChilliPL opened 4 years ago

TheChilliPL commented 4 years ago

Description of Issue

Can't use CIT with models from another namespace.

Steps to Reproduce

Create a CIT .properties file, referencing a model from a different namespace than Minecraft

OptiFine Version

Optifine 1.14.4 HD U F5

Installation Method

JAR into the mods folder, with Fabric and OptiFabric.

Fabric/Forge Version

Fabric Loader 0.9.0+build.204

OptiFabric Version

OptiFabric 0.7.1

Other Installed Mods

Doubt it's a fault of any of the other mods, but if you insist—here it is!

Log Files/Crash Reports

Right after loading the resource packs:

[17:54:10] [Server-Worker-5/INFO]: [OptiFine] CustomItems: optifine/cit/customdirectory/scythe.properties
[17:54:10] [Server-Worker-5/WARN]: Unable to load model: 'optifine/cit/customdirectory/customnamespace:scythe#inventory' referenced from: optifine/cit/customdirectory/customnamespace:scythe#inventory: {}
[17:54:10] [Server-Worker-5/WARN]: java.io.FileNotFoundException: optifine/cit/customdirectory/customnamespace:models/item/scythe.json

F3 Debug Screenshot

image In the hotbar you can see two items—the missing texture one is the scythe replaced by optifine, the working one is a vanilla one (overrides in diamond_sword.json)

Prior Testing

N/A

Additional Information

scythe.properties:


type=item
items=minecraft:diamond_sword
model=customnamespace:scythe
nbt.display.Name=iregex:.*scythe.*
TheChilliPL commented 4 years ago

Also, ..-s don't work