1
0
mirror of https://github.com/inf112-v20/Fiasko.git synced 2025-03-03 16:49:45 +01:00

Fikser en bug der programmet til en spiller blir nullstilt og det ikke skal det

This commit is contained in:
Kristian Knarvik 2020-04-28 13:58:03 +02:00
parent 85100496bf
commit 6c7ff8ac8b

@ -110,8 +110,8 @@ class RoboRallyClientListener extends Listener {
} }
} }
if (newHand.isEmpty()) { if (newHand.isEmpty()) {
wrapper.getGame().setProgram(new ArrayList<>());
if (wrapper.getGame().getRobotPowerDown()) { if (wrapper.getGame().getRobotPowerDown()) {
wrapper.getGame().setProgram(new ArrayList<>());
wrapper.getGame().setGameState(GameState.SKIP_POWER_DOWN_SCREEN); wrapper.getGame().setGameState(GameState.SKIP_POWER_DOWN_SCREEN);
} else { } else {
wrapper.getGame().setGameState(GameState.CHOOSING_CARDS); wrapper.getGame().setGameState(GameState.CHOOSING_CARDS);