diff --git a/src/net/torvald/terrarum/modulebasegame/gameactors/FixtureSwingingDoorBase.kt b/src/net/torvald/terrarum/modulebasegame/gameactors/FixtureSwingingDoorBase.kt index ee0c24caa..dd38b9abc 100644 --- a/src/net/torvald/terrarum/modulebasegame/gameactors/FixtureSwingingDoorBase.kt +++ b/src/net/torvald/terrarum/modulebasegame/gameactors/FixtureSwingingDoorBase.kt @@ -372,7 +372,10 @@ open class FixtureSwingingDoorBase : FixtureBase { }*/ - val amicableActors = INGAME.actorContainerActive.filterIsInstance() + val amicableActors = INGAME.actorContainerActive.filterIsInstance().filter { + // actor.ontheLeftSideOfDoor and actor.ontheRightSideOfDoor won't consider the distance of the actor so we filter the actors further + this.hitbox.containsHitbox(INGAME.world.width * TILE_SIZED, it.hitbox) + } var nobodyIsThere = true