From 538daaf9d8851e8ea5a9660d319586ead02d08c0 Mon Sep 17 00:00:00 2001 From: Timur Saglam Date: Thu, 3 Oct 2024 20:03:02 +0200 Subject: [PATCH] Avoid Java 21 syntax for now. --- src/main/java/carcassonne/model/tile/TileStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/carcassonne/model/tile/TileStack.java b/src/main/java/carcassonne/model/tile/TileStack.java index 34f5274..cce8a4f 100644 --- a/src/main/java/carcassonne/model/tile/TileStack.java +++ b/src/main/java/carcassonne/model/tile/TileStack.java @@ -61,7 +61,7 @@ public Tile drawTile() { return returnedTiles.poll(); } - return tiles.removeFirst(); + return tiles.remove(0); } /**