[GREENFOOT-228] IllegalStateException in GridWorld scenario with greenfoot 1.5.0 and later.
Slightly modified Gridworld/BoxBug scenario. I subclassed a BoxBug called (BoxBug45) that turns 45 degrees instead of 90 degrees. When I have a BoxBug face-off against a BoxBug45, the BoxBug45 is removed and the following is displayed in the Terminal Window:
java.lang.IllegalStateException: The grid contains a different actor at location (5, 5). at GridActor.moveTo(GridActor.java:160) at Bug.move(Bug.java:75) at BoxBug.act(BoxBug.java:47) at greenfoot.core.Simulation.runOneLoop(Simulation.java:288) at greenfoot.core.Simulation.run(Simulation.java:158)
Scenario attached.
This scenario seems to work in 1.46
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 1.5.4