forked from Mirrorlandia_minetest/mesecons
Merge pull request #151 from CiaranG/lua-formspec
Handle luacontroller formspec events correctly
This commit is contained in:
commit
8440d05e8c
@ -518,7 +518,7 @@ minetest.register_node(nodename, {
|
|||||||
node_box = nodebox,
|
node_box = nodebox,
|
||||||
on_construct = reset_meta,
|
on_construct = reset_meta,
|
||||||
on_receive_fields = function(pos, formname, fields)
|
on_receive_fields = function(pos, formname, fields)
|
||||||
if fields.quit then
|
if not fields.program then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
reset(pos)
|
reset(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user