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.GraphicsEnvironment;
public class Main {
public static void main(String[] args) throws InterruptedException
{
if (!GraphicsEnvironment.isHeadless())
{
Integer[][] map = new Integer[][]
{
@@ -27,4 +30,5 @@ public class Main {
.build();
game.run();
}
}
}