Fix the commandblock's check for quiting the formspec

The submit button also sends a quit field.
This commit is contained in:
ShadowNinja 2014-06-06 11:24:24 -04:00
parent e5896076fe
commit 041429c985

@ -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)