mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
sync FreezeGamePlayer
This commit is contained in:
parent
ca0eea33f6
commit
fc82db6dec
@ -255,7 +255,7 @@ public class FreezeGame extends Game {
|
||||
scoreboard.setExtradata("0");
|
||||
}
|
||||
|
||||
int oldScore = Integer.valueOf(scoreboard.getExtradata());
|
||||
int oldScore = Integer.parseInt(scoreboard.getExtradata());
|
||||
|
||||
if (oldScore == totalScore)
|
||||
continue;
|
||||
|
@ -38,7 +38,7 @@ public class FreezeGamePlayer extends GamePlayer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addScore(int amount) {
|
||||
public synchronized void addScore(int amount) {
|
||||
super.addScore(amount);
|
||||
|
||||
if (amount > 0) {
|
||||
@ -122,10 +122,7 @@ public class FreezeGamePlayer extends GamePlayer {
|
||||
}
|
||||
|
||||
public boolean canGetFrozen() {
|
||||
if (this.isFrozen() || this.isProtected())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return !this.isFrozen() && !this.isProtected();
|
||||
}
|
||||
|
||||
public void addProtection() {
|
||||
|
Loading…
Reference in New Issue
Block a user