fixes to maintainer test

This commit is contained in:
Chanumask
2023-11-23 15:28:47 +01:00
parent fcea1972a4
commit ef440356e0
4 changed files with 26 additions and 22 deletions

View File

@ -107,7 +107,6 @@ class Door(Entity):
def tick(self, state) -> Union[Result, None]:
# Check if no entity is standing in the door
if not any(e for e in state.entities.by_pos(self.pos) if e.var_can_collide or e.var_is_blocking_pos):
# if len(state.entities.pos_dict[self.pos]) <= 2: #can collide can block
if self.is_open and self.time_to_close:
self._decrement_timer()
return Result(f"{d.DOOR}_tick", c.VALID, entity=self)