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 nodesh137
parent
c6bef1c358
commit
cd38b17eab
|
@ -1056,7 +1056,7 @@ function advtrains.invalidate_all_paths(pos)
|
|||
end
|
||||
end
|
||||
function advtrains.invalidate_path(id)
|
||||
atdebug("Path invalidate:",id)
|
||||
--atdebug("Path invalidate:",id)
|
||||
local v=advtrains.trains[id]
|
||||
if not v then return end
|
||||
advtrains.path_invalidate(v)
|
||||
|
@ -1081,6 +1081,7 @@ local nonblocknodes={
|
|||
"default:fence_pine_wood",
|
||||
"default:fence_junglewood",
|
||||
"default:torch",
|
||||
"bones:bones",
|
||||
|
||||
"default:sign_wall",
|
||||
"signs:sign_wall",
|
||||
|
|
|
@ -107,7 +107,7 @@ function wagon:set_id(wid)
|
|||
minetest.after(0.2, function() self:reattach_all() end)
|
||||
|
||||
if self.custom_on_activate then
|
||||
self:custom_on_activate(dtime_s)
|
||||
self:custom_on_activate()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue