Log sprite id and not the atlas id for sprites with invalid bounds.

This commit is contained in:
modmuss50 2022-11-23 17:13:51 +00:00
parent e6f4ce589f
commit 02d6eeb0ca

View file

@ -93,7 +93,7 @@ public class SpriteFinderImpl implements SpriteFinder {
// Prefer failing with a log warning rather than risking a stack overflow.
if (badSpriteCount++ < 5) {
String errorMessage = "SpriteFinderImpl: Skipping sprite {} with broken bounds [{}, {}]x[{}, {}]. Sprite bounds should be between 0 and 1.";
LOGGER.error(errorMessage, sprite.getId(), sprite.getMinU(), sprite.getMaxU(), sprite.getMinV(), sprite.getMaxV());
LOGGER.error(errorMessage, sprite.getContents().getId(), sprite.getMinU(), sprite.getMaxU(), sprite.getMinV(), sprite.getMaxV());
}
return;