diff --git a/clash_royale/envs/game_engine/entities/entity.py b/clash_royale/envs/game_engine/entities/entity.py index 56750ff..6d5b123 100644 --- a/clash_royale/envs/game_engine/entities/entity.py +++ b/clash_royale/envs/game_engine/entities/entity.py @@ -438,7 +438,7 @@ def stop(self): self.running = False - for mod in self.entitys: + for mod in self.entities: # Determine if this entity needs stopping: @@ -450,7 +450,7 @@ def stop(self): return - def _load_entity(self, mod: Entity): + def _load_entity(self, mod: Entity) -> None: """ Adds the entity to our collection. @@ -458,16 +458,11 @@ def _load_entity(self, mod: Entity): be worked with by end users! :param mod: entity to add - :type mod: Baseentity + :type mod: Entity """ # Create the data to be stored: - - temp = (mod,) - - # Add the entity to the collection: - - self.entitys = self.entitys + temp + self.entities.append(mod) # Update our stats: