diff --git a/tools/commons/src/sgdk/tool/ImageUtil.java b/tools/commons/src/sgdk/tool/ImageUtil.java index a073ad70..3d55d49a 100644 --- a/tools/commons/src/sgdk/tool/ImageUtil.java +++ b/tools/commons/src/sgdk/tool/ImageUtil.java @@ -766,7 +766,7 @@ public static int[] getRGBA88884PaletteFromPALFile(String file) throws IOExcepti for (int i = 0; i < size; i++) { - final String rgba[] = br.readLine().split(" "); + final String rgba[] = br.readLine().replaceAll("#[0-9a-fA-F]+", "").split("\\s+"); final int r, g, b, a;