fix(Main.java): regarde si il a un serveur d'affichage

- problemes futur sans x11
This commit is contained in:
2025-11-09 16:06:16 +01:00
parent fd7af21919
commit 528ab1c91b

View File

@@ -1,7 +1,10 @@
import java.awt.Color; import java.awt.Color;
import java.awt.GraphicsEnvironment;
public class Main { public class Main {
public static void main(String[] args) throws InterruptedException public static void main(String[] args) throws InterruptedException
{
if (!GraphicsEnvironment.isHeadless())
{ {
Integer[][] map = new Integer[][] Integer[][] map = new Integer[][]
{ {
@@ -28,3 +31,4 @@ public class Main {
game.run(); game.run();
} }
} }
}