diff options
author | Anthony <azhang9@gmail.com> | 2014-03-11 18:11:35 -0400 |
---|---|---|
committer | Anthony <azhang9@gmail.com> | 2014-03-11 18:11:35 -0400 |
commit | 8440d05e8c0fe7d64edccc6f8581c63f42087151 (patch) | |
tree | 3a5d568aeee79aabe3bac8c7344f3cb518b09824 | |
parent | a59f53d71aa580e03adce238158d7852866f922c (diff) | |
parent | 5d3cba0bd4f196f08027e08030259223a2c58525 (diff) | |
download | mesecons-8440d05e8c0fe7d64edccc6f8581c63f42087151.tar mesecons-8440d05e8c0fe7d64edccc6f8581c63f42087151.tar.gz mesecons-8440d05e8c0fe7d64edccc6f8581c63f42087151.tar.bz2 mesecons-8440d05e8c0fe7d64edccc6f8581c63f42087151.tar.xz mesecons-8440d05e8c0fe7d64edccc6f8581c63f42087151.zip |
Merge pull request #151 from CiaranG/lua-formspec
Handle luacontroller formspec events correctly
-rw-r--r-- | mesecons_luacontroller/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 263a66a..2cfa67e 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -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) |