diff --git a/sigIRCv2.jar b/sigIRCv2.jar index 9d4c385..df607ca 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/RabiRace/Profile.java b/src/sig/modules/RabiRace/Profile.java index 184ff3f..2416cf2 100644 --- a/src/sig/modules/RabiRace/Profile.java +++ b/src/sig/modules/RabiRace/Profile.java @@ -227,9 +227,9 @@ public class Profile { } catch (IOException e) { e.printStackTrace(); } - System.out.println(getDataString()); - String[] data = FileUtils.readFromFile(sigIRC.BASEDIR+"tmp"); - System.out.println(Arrays.toString(data)); + //System.out.println(getDataString()); + //String[] data = FileUtils.readFromFile(sigIRC.BASEDIR+"tmp"); + //System.out.println(Arrays.toString(data)); } } @@ -245,9 +245,10 @@ public class Profile { } String[] data = FileUtils.readFromFile(sigIRC.BASEDIR+"tmp_profile"); //System.out.println(Arrays.toString(data)); - if (data.length>=18) { + if (data.length>=19) { int i=0; displayName = data[i++]; + try { avatar = Avatar.getAvatarFromID(Integer.parseInt(data[i++])); //System.out.println("Updated Avatar for Player "+displayName+" with Avatar "+avatar.displayName); timeKey = Integer.parseInt(data[i++]); @@ -263,6 +264,9 @@ public class Profile { loop = Integer.parseInt(data[i++]); itempct = Float.parseFloat(data[i++]); mappct = Float.parseFloat(data[i++]); + } catch (NumberFormatException e) { + return false; + } i+=2; String nextval = data[i++]; if (!nextval.equalsIgnoreCase("BADGES:")) {