Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
zentox committed Nov 6, 2023
1 parent c8307ed commit dd2d79e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/h06/world/World.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package h06.world;

import fopbot.Field;
import fopbot.FieldEntity;
import org.tudalgo.algoutils.student.annotation.StudentImplementationRequired;

Expand Down Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit dd2d79e

Please sign in to comment.