mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-14 22:30:32 +01:00
rename luaC nodetimer setting to "luacontroller_lightweight_interrupts" and dropped iid support in it
This commit is contained in:
parent
f163d441ad
commit
d62b9eae05
|
@ -282,9 +282,8 @@ local function get_interrupt(pos, itbl, send_warning)
|
||||||
iid = remove_functions(iid)
|
iid = remove_functions(iid)
|
||||||
local msg_ser = minetest.serialize(iid)
|
local msg_ser = minetest.serialize(iid)
|
||||||
if #msg_ser <= mesecon.setting("luacontroller_interruptid_maxlen", 256) then
|
if #msg_ser <= mesecon.setting("luacontroller_interruptid_maxlen", 256) then
|
||||||
if mesecon.setting("luacontroller_nodetimer", false) then
|
if mesecon.setting("luacontroller_lightweight_interrupts", false) then
|
||||||
-- use node timer
|
-- use node timer
|
||||||
minetest.get_meta(pos):set_string("iid", iid)
|
|
||||||
minetest.get_node_timer(pos):start(time)
|
minetest.get_node_timer(pos):start(time)
|
||||||
else
|
else
|
||||||
-- use global action queue
|
-- use global action queue
|
||||||
|
@ -657,11 +656,10 @@ local function reset(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function node_timer(pos)
|
local function node_timer(pos)
|
||||||
local iid = minetest.get_meta(pos):get_string("iid")
|
|
||||||
if (minetest.registered_nodes[minetest.get_node(pos).name].is_burnt) then
|
if (minetest.registered_nodes[minetest.get_node(pos).name].is_burnt) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
run(pos, {type="interrupt", iid = iid})
|
run(pos, {type="interrupt"})
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user