Handle ROUND_STATE.ENDED in stateChange to clear resources and reset loot.

This commit is contained in:
akastijn 2026-07-11 21:53:40 +02:00
parent 9198af6c29
commit fc7b5c76a6

View File

@ -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();
} }