Handle ROUND_STATE.ENDED in stateChange to clear resources and reset loot.
This commit is contained in:
parent
9198af6c29
commit
fc7b5c76a6
|
|
@ -117,7 +117,7 @@ public class RoundService implements RoundListener {
|
||||||
public void stateChange(ROUND_STATE roundState) {
|
public void stateChange(ROUND_STATE roundState) {
|
||||||
this.roundState = roundState;
|
this.roundState = roundState;
|
||||||
stopFreeze();
|
stopFreeze();
|
||||||
if (roundState.equals(ROUND_STATE.PLAYER_REGISTRATION)) {
|
if (roundState.equals(ROUND_STATE.PLAYER_REGISTRATION) || roundState.equals(ROUND_STATE.ENDED)) {
|
||||||
clear();
|
clear();
|
||||||
lootService.clear();
|
lootService.clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user