Fix sign textures being stitched onto every texture atlas (#7690)

This commit is contained in:
Take Weiland authored and GitHub committed 2021-03-17 10:04:07 -07:00
1 parent 5c488c9007
commit 0239a736ec
1 file changed
+3 -1
@@ -164,7 +164,9 @@ public class ForgeHooksClient
StartupMessageManager.mcLoaderConsumer().ifPresent(c->c.accept("Atlas Stitching : "+map.location().toString()));
ModLoader.get().postEvent(new TextureStitchEvent.Pre(map, resourceLocations));
// ModelLoader.White.INSTANCE.register(map); // TODO Custom TAS
Atlases.SIGN_MATERIALS.values().forEach(material -> resourceLocations.add(material.texture()));
Atlases.SIGN_MATERIALS.values().stream()
.filter(rm -> rm.atlasLocation().equals(map.location()))
.forEach(rm -> resourceLocations.add(rm.texture()));
}
public static void onTextureStitchedPost(AtlasTexture map)