Add error in animation logixc

This commit is contained in:
Felix Koppe
2024-12-08 22:04:16 +01:00
parent 84c5553154
commit 521c7439c2
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ public ActionControl(Runnable runnable){
protected void action(){
if(runnable == null) throw new RuntimeException("runnable is null");
else runnable.run();
if(null != runnable) {
runnable.run();
}
}
}

View File

@@ -831,7 +831,7 @@ private void throwBomb(UUID uuid) {
}
private void throwMatrix(UUID uuid) {
//app.getAcousticHandler().playSound(MdgaSound.MATRIX);
app.getAcousticHandler().playSound(MdgaSound.MATRIX);
Spatial piece = pieces.get(uuid).getSpatial();
piece.addControl(new MatrixAnimation(app, radarPos,()-> {
piece.addControl(new FadeControl(1,1,0,

View File

@@ -27,7 +27,6 @@ public WaitingPieceState(ClientState parent, ClientGameLogic logic) {
@Override
public void enter() {
moveablePiece = null;
}
@Override