Skip to content

Commit

Permalink
Trim whitespace in skin color parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyonlancer5 committed Feb 18, 2018
1 parent 035b8fa commit 6a6182d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/itdelatrisu/opsu/skins/SkinLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ public static Skin loadSkin(File dir) {
try {
String[] rgb = tokens[1].split(",");
Color color = new Color(
Integer.parseInt(rgb[0]),
Integer.parseInt(rgb[1]),
Integer.parseInt(rgb[2])
Integer.parseInt(rgb[0].trim()),
Integer.parseInt(rgb[1].trim()),
Integer.parseInt(rgb[2].trim())
);
switch (tokens[0]) {
case "Combo1":
Expand Down

0 comments on commit 6a6182d

Please # to comment.