summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2014-07-12 16:39:06 -0400
committerAnthony Zhang <azhang9@gmail.com>2014-07-12 16:39:06 -0400
commit0c62545a3a29e759c5152202244e00e5bcbd5601 (patch)
tree7aa8253d7d089163da1696c53e6e9da768e4c914
parente88e2131838caeb5fe66f22a57552936bd873916 (diff)
parent041429c985a697435efe836547f0b5b8024c0417 (diff)
downloadmesecons-0c62545a3a29e759c5152202244e00e5bcbd5601.tar
mesecons-0c62545a3a29e759c5152202244e00e5bcbd5601.tar.gz
mesecons-0c62545a3a29e759c5152202244e00e5bcbd5601.tar.bz2
mesecons-0c62545a3a29e759c5152202244e00e5bcbd5601.tar.xz
mesecons-0c62545a3a29e759c5152202244e00e5bcbd5601.zip
Merge pull request #168 from ShadowNinja/fix-commandblock-quit
Fix the commandblock's check for quiting the formspec
-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)