Skip to content

Commit

Permalink
Handle luacontroller formspec events correctly
Browse files Browse the repository at this point in the history
Example of problem fixed by this: Edit lua code, press Execute. Now
(execute button has focus), hold down a key. Zillions of "program"
events are generated.
  • Loading branch information
CiaranG committed Mar 11, 2014
1 parent a59f53d commit 5d3cba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_luacontroller/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 5d3cba0

Please sign in to comment.