From dd2d79e1f23a0a3e0ef40abc5ff041a39d50264f Mon Sep 17 00:00:00 2001 From: Nyanyan Date: Mon, 6 Nov 2023 13:40:04 +0100 Subject: [PATCH] Fix compile error --- src/main/java/h06/world/World.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/h06/world/World.java b/src/main/java/h06/world/World.java index bf10bc0..684b69c 100644 --- a/src/main/java/h06/world/World.java +++ b/src/main/java/h06/world/World.java @@ -1,6 +1,5 @@ package h06.world; -import fopbot.Field; import fopbot.FieldEntity; import org.tudalgo.algoutils.student.annotation.StudentImplementationRequired; @@ -71,7 +70,7 @@ public int getHeight() { * @param horizontal the orientation of the wall */ public void placeWall(int x, int y, boolean horizontal) { - fields[x][y].getEntities().add(new Wall(x, y, horizontal)); + fields[x][y].addEntity(new Wall(x, y, horizontal)); } /**