File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ def zone(self):
4545 return self .tags .get (GameTag .ZONE , Zone .INVALID )
4646
4747 def _update_tags (self , tags ):
48- for tag , value in tags .items ():
49- if tag == GameTag .CONTROLLER and not self ._initial_controller :
50- self ._initial_controller = self .tags .get (GameTag .CONTROLLER , value )
48+ controller = tags .get (GameTag .CONTROLLER )
49+ if controller is not None and not self ._initial_controller :
50+ self ._initial_controller = self .tags .get (GameTag .CONTROLLER , controller )
51+
5152 self .tags .update (tags )
5253
5354 def reset (self ):
@@ -161,7 +162,7 @@ def reset(self) -> None:
161162
162163 def find_entity_by_id (self , id : int ) -> Optional [Entity ]:
163164 # int() for LazyPlayer mainly...
164- id = int (id )
165+ # id = int(id)
165166 return self ._entities .get (id )
166167
167168
You can’t perform that action at this time.
0 commit comments