diff --git a/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java b/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java index e467384a..be1a4cfb 100644 --- a/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java +++ b/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java @@ -167,10 +167,12 @@ private void handleGame(Notification notification) { if(n.isMoveStart()) { //StartMove boardHandler.movePieceStartAnim(n.getPiece(), n.getMoveIndex()); + waitForAnimation = true; } else { //InfieldMove boardHandler.movePieceAnim(n.getPiece(), n.getStartIndex(), n.getMoveIndex()); + waitForAnimation = true; } guiHandler.hideText(); } else if (notification instanceof ThrowPieceNotification n) { diff --git a/Projekte/mdga/client/src/main/java/pp/mdga/client/board/BoardHandler.java b/Projekte/mdga/client/src/main/java/pp/mdga/client/board/BoardHandler.java index 04d0e5bb..8022ea36 100644 --- a/Projekte/mdga/client/src/main/java/pp/mdga/client/board/BoardHandler.java +++ b/Projekte/mdga/client/src/main/java/pp/mdga/client/board/BoardHandler.java @@ -473,6 +473,7 @@ private void movePieceStart(UUID uuid, int nodeIndex){ removeItemFromMapList(waitingPiecesMap, color, pieceControl); waitingNodes.get(color).remove(uuid); app.getModelSynchronize().animationEnd(); + app.getModelSynchronize().animationEnd(); } /** @@ -486,6 +487,7 @@ private void movePiece(UUID uuid, int curIndex, int moveIndex){ movePieceRek(uuid, curIndex, moveIndex); app.getModelSynchronize().animationEnd(); + app.getModelSynchronize().animationEnd(); } /**