FIUS / ICGE2

Version 2 of the Introduction Course Game Engine for the FIUS Java Introduction Course
MIT License
5 stars 4 forks source link

Selecting an entity that is despawned during the task results in an exception #205

Closed graefjk closed 1 year ago

graefjk commented 1 year ago

The ICGE throws an EntityNotOnFieldException when an entity is selected that is despawned during execution of the task method. This behavior comes from the fact that the entity inspector tries to update the position of the coin after it is despawned and the getEntityPosition method throws a EntityNotOnFieldException.

How to reproduce: