Skip to content

Commit

Permalink
fixed _load_entity entity loading method
Browse files Browse the repository at this point in the history
  • Loading branch information
lunathanael committed Mar 11, 2024
1 parent 7fa3871 commit d12e8b5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions clash_royale/envs/game_engine/entities/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -450,24 +450,19 @@ def stop(self):

return

def _load_entity(self, mod: Entity):
def _load_entity(self, mod: Entity) -> None:
"""
Adds the entity to our collection.
This low-level method is not intended to
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:

Expand Down

0 comments on commit d12e8b5

Please sign in to comment.