mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-28 19:13:41 +00:00
fix(Main.java): regarde si il a un serveur d'affichage
- problemes futur sans x11
This commit is contained in:
@@ -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[][]
|
||||
{
|
||||
@@ -28,3 +31,4 @@ public class Main {
|
||||
game.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user