mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-02 02:00:14 -04:00
Log sprite id and not the atlas id for sprites with invalid bounds.
This commit is contained in:
parent
e6f4ce589f
commit
02d6eeb0ca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue