Skip to content

Commit

Permalink
bug: Processors should not be removed when calling `esper.clear_datab…
Browse files Browse the repository at this point in the history
…ase`.
  • Loading branch information
benmoran56 committed Jul 20, 2023
1 parent 6ff0971 commit f71c56b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions esper/__init__.py
Expand Up @@ -171,15 +171,14 @@ def clear_database() -> None:
"""Clear the Entity Component database.
Removes all Entities and Components from the current World.
Processors are not removed.
"""
global _entity_count
_entity_count = _count(start=1)
_components.clear()
_entities.clear()
_dead_entities.clear()
clear_cache()
_processors.clear()
process_times.clear()


def add_processor(processor_instance: Processor, priority: int = 0) -> None:
Expand Down

0 comments on commit f71c56b

Please sign in to comment.