mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 06:06:17 +00:00
replace sprite on commandline
This commit is contained in:
@@ -3346,6 +3346,14 @@ public class CommandLineArgumentParser {
|
||||
System.err.println("Import FAILED: " + iex.getMessage());
|
||||
System.exit(1);
|
||||
}
|
||||
} else if (characterTag instanceof DefineSpriteTag) {
|
||||
DefineSpriteTag sprite = (DefineSpriteTag) characterTag;
|
||||
try {
|
||||
new SpriteImporter().importSprite(sprite, new ByteArrayInputStream(data));
|
||||
} catch (IOException iex) {
|
||||
System.err.println("Import FAILED: " + iex.getMessage());
|
||||
System.exit(1);
|
||||
}
|
||||
} else {
|
||||
System.err.println("The specified tag type is not supported for import");
|
||||
System.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user