mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-28 00:07:29 +01:00
Handle luacontroller formspec events correctly
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.
This commit is contained in:
parent
a59f53d71a
commit
5d3cba0bd4
@ -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