summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-06-06 11:24:24 -0400
committerShadowNinja <shadowninja@minetest.net>2014-06-06 11:24:24 -0400
commit041429c985a697435efe836547f0b5b8024c0417 (patch)
tree16254d2e2676f1f6742074bf5b6be7f9ad2f9078
parente5896076fe35f335794c0136cb12768109ad6fea (diff)
downloadmesecons-041429c985a697435efe836547f0b5b8024c0417.tar
mesecons-041429c985a697435efe836547f0b5b8024c0417.tar.gz
mesecons-041429c985a697435efe836547f0b5b8024c0417.tar.bz2
mesecons-041429c985a697435efe836547f0b5b8024c0417.tar.xz
mesecons-041429c985a697435efe836547f0b5b8024c0417.zip
Fix the commandblock's check for quiting the formspec
The submit button also sends a quit field.
-rw-r--r--mesecons_commandblock/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua
index d163d5c..8fd23f6 100644
--- a/mesecons_commandblock/init.lua
+++ b/mesecons_commandblock/init.lua
@@ -79,7 +79,7 @@ local function after_place(pos, placer)
end
local function receive_fields(pos, formname, fields, sender)
- if fields.quit then
+ if not fields.submit then
return
end
local meta = minetest.get_meta(pos)