소스 검색

More fixes

nossr50 13 년 전
부모
커밋
7e9aada919
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/main/java/com/gmail/nossr50/Leaderboard.java

+ 2 - 4
src/main/java/com/gmail/nossr50/Leaderboard.java

@@ -239,8 +239,7 @@ public class Leaderboard {
             String line = "";
             String[] info = new String[10]; //what to return
 
-            while (in.readLine() != null && y < 10) {
-                line = in.readLine();
+            while ((line = in.readLine()) != null && y < 10) {
                 x++;
 
                 if (x >= destination && y < 10) {
@@ -279,8 +278,7 @@ public class Leaderboard {
             String line = "";
             Boolean inserted = false;
 
-            while (in.readLine() != null) {
-                line = in.readLine();
+            while ((line = in.readLine()) != null) {
 
                 //Insert the player into the line before it finds a smaller one
                 if (Integer.valueOf(line.split(":")[1]) < ps.statVal && !inserted) {