aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-17 17:52:22 +0200
committerorwell96 <orwell@bleipb.de>2018-10-17 18:11:11 +0200
commitcd38b17eabb8cdc37bd7e11a89fd0fd049910ffc (patch)
treec53253e996691583408b0fdad9679356571b5ae8 /advtrains_luaautomation
parentc6bef1c358af39c25e0def8aa374e4474a6e334c (diff)
downloadadvtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.tar.gz
advtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.tar.bz2
advtrains-cd38b17eabb8cdc37bd7e11a89fd0fd049910ffc.zip
Address H#60, H#17, M#18 and M#7
duplicate "message" to "msg" make operation panel "cracky" remove inexistent dtime_s parameter add bones:bones to the list of not_blocking_trains nodes
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/README.txt3
-rw-r--r--advtrains_luaautomation/active_common.lua2
-rw-r--r--advtrains_luaautomation/operation_panel.lua2
3 files changed, 4 insertions, 3 deletions
diff --git a/advtrains_luaautomation/README.txt b/advtrains_luaautomation/README.txt
index 0426ce9..279b07d 100644
--- a/advtrains_luaautomation/README.txt
+++ b/advtrains_luaautomation/README.txt
@@ -148,8 +148,9 @@ The Lua-controlled ATC rails are the only components that can actually interface
{type="train", train=true, id="<train_id>"}
This event is fired when a train enters the rail. The field 'id' is the unique train ID, which is 6-digit random numerical string.
-{type="int", int=true, message=<message>}
+{type="int", int=true, msg=<message>}
Fired when an interrupt set by the 'interrupt' function runs out. 'message' is the message passed to the interrupt function.
+For backwards compatiblity reasons, <message> is also contained in an event.message field.
{type="ext_int", ext_int=true, message=<message>}
Fired when another node called 'interrupt_pos' on this position. 'message' is the message passed to the interrupt_pos function.
diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua
index d4cc0da..27255a3 100644
--- a/advtrains_luaautomation/active_common.lua
+++ b/advtrains_luaautomation/active_common.lua
@@ -115,7 +115,7 @@ function ac.run_in_env(pos, evtdata, customfct_p)
customfct.interrupt=function(t, imesg)
assertt(t, "number")
assert(t >= 0)
- atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg})
+ atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg, msg=imesg}) --Compatiblity "message" field.
end
-- add digiline_send function, if digiline is loaded
if minetest.global_exists("digiline") then
diff --git a/advtrains_luaautomation/operation_panel.lua b/advtrains_luaautomation/operation_panel.lua
index eb7201c..d0dd567 100644
--- a/advtrains_luaautomation/operation_panel.lua
+++ b/advtrains_luaautomation/operation_panel.lua
@@ -9,7 +9,7 @@ minetest.register_node("advtrains_luaautomation:oppanel", {
tiles={"atlatc_oppanel.png"},
description = "LuaAutomation operation panel",
groups = {
- choppy = 1,
+ cracky = 1,
save_in_nodedb=1,
},
after_place_node = atlatc.active.after_place_node,