Skip to content

Commit

Permalink
Add support for frameID
Browse files Browse the repository at this point in the history
  • Loading branch information
melkypie committed Jun 13, 2021
1 parent 44ab6ff commit 5dea735
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/melky/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,16 @@ private static void loopDirectory(File[] directory, String dirName, String sprit
continue;
}

File originalSprite = new File(spriteDir + "/" + override.getSpriteID() + "-0.png");
File originalSprite;
if (override.getFrameID() != -1)
{
originalSprite = new File(spriteDir + "/" + override.getSpriteID() + "-" + override.getFrameID() + ".png");
}
else
{
originalSprite = new File(spriteDir + "/" + override.getSpriteID() + "-0.png");
}

if (!delete && fileContentEquals(file, originalSprite))
{
log.info("File " + file.getName() + " (" + override.getSpriteID() + ") in folder " + dirName + " is the same as the vanilla sprite");
Expand Down

0 comments on commit 5dea735

Please sign in to comment.