From e59d5781eb5126a360590bcfc660c4fc0a288424 Mon Sep 17 00:00:00 2001 From: Federico Bagattoni Date: Mon, 8 Jul 2024 23:17:34 +0200 Subject: [PATCH] Removed println, added stacktrace --- src/main/java/it/unibo/bombardero/core/BombarderoEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/unibo/bombardero/core/BombarderoEngine.java b/src/main/java/it/unibo/bombardero/core/BombarderoEngine.java index 0cb2f82f..e75ed45d 100644 --- a/src/main/java/it/unibo/bombardero/core/BombarderoEngine.java +++ b/src/main/java/it/unibo/bombardero/core/BombarderoEngine.java @@ -51,7 +51,7 @@ private void waitForNextFrame(final long currentCycleStartTime) { try { Thread.sleep(BombarderoEngine.SLEEP_TIME - currentCycleElapsedTime); } catch (IllegalArgumentException | InterruptedException e) { - System.out.println("Exception in thread sleeping: " + e.getMessage()); + e.printStackTrace(); } } }