Merge pull request #151 from CiaranG/lua-formspec

Handle luacontroller formspec events correctly
master
Anthony 2014-03-11 18:11:35 -04:00
commit 8440d05e8c
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ minetest.register_node(nodename, {
node_box = nodebox,
on_construct = reset_meta,
on_receive_fields = function(pos, formname, fields)
if fields.quit then
if not fields.program then
return
end
reset(pos)