added translations
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ public abstract class Obstacle {
|
||||
|
||||
private static final List<Obstacle> remaining = new ArrayList<>();
|
||||
|
||||
public static Obstacle getRandomObstacle() {
|
||||
public static synchronized Obstacle getRandomObstacle() {
|
||||
if(remaining.isEmpty()) {
|
||||
remaining.addAll(obstacles);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user