mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
'#' is now added automatically to the beginning of the texture names in B3D models, and the remapping is expected via the blockstate JSON, since it's more reasonable than adding it to the file name in the modelling program or matching the resource location with the filename.
This commit is contained in:
1 parent
d71384bc33
commit
e280f72cfb
1 file changed
+3
-1
@@ -354,7 +354,9 @@ public class B3DLoader implements ICustomModelLoader
|
||||
for(Texture t : textures)
|
||||
{
|
||||
String path = t.getPath();
|
||||
builder.put(path, new ResourceLocation(getLocation(path)));
|
||||
String location = getLocation(path);
|
||||
if(!location.startsWith("#")) location = "#" + location;
|
||||
builder.put(path, new ResourceLocation(location));
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user