mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
repackaged the door entries to reset timing issues on subsequent tests
This commit is contained in:
parent
3270ec87b8
commit
601bba7aa5
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ class DoorCloseActor() extends Actor {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
openDoors = (doorsLeftOpen1 ++ doorsLeftOpen2).sortBy(_.time)
|
openDoors = (
|
||||||
|
doorsLeftOpen1 ++
|
||||||
|
doorsLeftOpen2.map(entry => DoorCloseActor.DoorEntry(entry.door, entry.zone, now))
|
||||||
|
).sortBy(_.time)
|
||||||
doorsToClose2.foreach(entry => {
|
doorsToClose2.foreach(entry => {
|
||||||
entry.door.Open = None //permissible break from synchronization
|
entry.door.Open = None //permissible break from synchronization
|
||||||
context.parent ! DoorCloseActor.CloseTheDoor(entry.door.GUID, entry.zone.Id) //call up to the main event system
|
context.parent ! DoorCloseActor.CloseTheDoor(entry.door.GUID, entry.zone.Id) //call up to the main event system
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue