Skip to content

Commit c9603be

Browse files
committed
fix:最高kill数がかわらない、最高レートが変わらない
1 parent d11955e commit c9603be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/github/elic0de/thejpspit/player/OfflinePitPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void increaseKills() {
7373

7474
public void increaseStreaks() {
7575
this.streaks ++;
76-
if (bestStreaks > streaks) {
76+
if (bestStreaks < streaks) {
7777
this.bestStreaks = streaks;
7878
}
7979
}

src/main/java/com/github/elic0de/thejpspit/player/PitPlayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class PitPlayer {
3030
};
3131
private final ItemStack[] ARMOR = {
3232
new ItemStack(Material.CHAINMAIL_BOOTS),
33-
new ItemStack(Material.CHAINMAIL_LEGGINGS),
33+
new ItemStack(Material.IRON_LEGGINGS),
3434
new ItemStack(Material.IRON_CHESTPLATE)
3535
};
3636
private long kills;
@@ -187,7 +187,7 @@ public double getBestRating() {
187187

188188
public void setRating(double rating) {
189189
this.rating = rating;
190-
if (bestRating > rating) {
190+
if (bestRating < rating) {
191191
this.bestRating = rating;
192192
}
193193
}

0 commit comments

Comments
 (0)