Add more paths to texture search

This commit is contained in:
embeddedt 2023-05-08 18:04:23 -04:00
parent fc9aff6217
commit 9d4d1cc9b4
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -235,11 +235,14 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
this::getModel); this::getModel);
/* take every texture from these folders (1.19.3+ emulation) */ /* take every texture from these folders (1.19.3+ emulation) */
String[] extraFolders = new String[] { String[] extraFolders = new String[] {
"attachment",
"bettergrass",
"block", "block",
"blocks", "blocks",
"cape",
"item", "item",
"items", "items",
"bettergrass" "pipe"
}; };
for(String folder : extraFolders) { for(String folder : extraFolders) {
Collection<ResourceLocation> textureLocations = this.resourceManager.listResources("textures/" + folder, p -> p.endsWith(".png")); Collection<ResourceLocation> textureLocations = this.resourceManager.listResources("textures/" + folder, p -> p.endsWith(".png"));