Update patch for 1.19

This commit is contained in:
embeddedt 2023-05-08 14:54:31 -04:00
parent 985b5a68fe
commit 21a9266c8f
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -243,7 +243,7 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
"bettergrass" "bettergrass"
}; };
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.getPath().endsWith(".png")).keySet();
for(ResourceLocation rl : textureLocations) { for(ResourceLocation rl : textureLocations) {
if(rl.getNamespace().equals("assets")) { if(rl.getNamespace().equals("assets")) {
/* buggy pack, correct path */ /* buggy pack, correct path */