Fix error

This commit is contained in:
Felix Koppe
2024-12-08 17:24:18 +01:00
parent 1e52df2812
commit 34cde15a0d

View File

@@ -45,6 +45,8 @@ public void received(RequestMoveMessage msg, int from){
if (occ != null){
logic.getGame().getPlayerByColor(occ.getColor()).addWaitingPiece(occ);
}
logic.getGame().getBoard().getInfield()[logic.getGame().getPlayerByColor(piece.getColor()).getStartNodeIndex()].setOccupant(msg.getPiece());
this.choosePieceAutomaton.getTurnAutomaton().setCurrentState(this.choosePieceAutomaton.getTurnAutomaton().getMovePieceState());
}
}