Don't buy hearts, use them instant instead. Fixes #38

This commit is contained in:
Yohann D'ANELLO
2020-12-09 16:57:46 +01:00
parent 2d5a2e4c87
commit 4dbd4f7912
3 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,8 @@ class Map:
"""
Unregister an entity from the map.
"""
self.entities.remove(entity)
if entity in self.entities:
self.entities.remove(entity)
def find_entities(self, entity_class: type) -> list:
return [entity for entity in self.entities