diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-31 23:26:37 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-31 23:26:37 -0500 |
commit | bf31b4384e9eb52288dc4c3d60d075843ecd6422 (patch) | |
tree | 282d3d500182d8afae8ab9905df42220345ab76f /dispatcher.lua | |
parent | deee7a747c9d9c5fefb17dbb1914077bd3ec6a7d (diff) | |
download | celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.gz celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.bz2 celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.xz celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.zip |
Add destination-based dispatching
Still uses a crude ETA algorithm for now and is missing some features, but it is working and usable at a basic level
Diffstat (limited to 'dispatcher.lua')
-rw-r--r-- | dispatcher.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dispatcher.lua b/dispatcher.lua index b58c6eb..a8bcf1c 100644 --- a/dispatcher.lua +++ b/dispatcher.lua @@ -345,6 +345,9 @@ function celevator.dispatcher.finish(pos,mem,changedinterrupts) }) end end + for _,message in ipairs(mem.kioskmessages) do + celevator.dbdkiosk.showassignment(minetest.get_position_from_hash(message.pos),message.car) + end meta:set_string("mem",minetest.serialize(mem)) if node.name == "celevator:dispatcher_open" then meta:set_string("formspec",mem.formspec or "") end meta:set_string("formspec_hidden",mem.formspec or "") |