From 7c434d85ed2fbffbd450a79886a440b66e208a3a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 16 May 2018 18:16:17 +0200 Subject: [PATCH] Also save cmd block on enter key --- mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua b/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua index 5255d2ceca..9c3f90e432 100644 --- a/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua @@ -245,7 +245,7 @@ minetest.register_node("mesecons_commandblock:commandblock_on", { minetest.register_on_player_receive_fields(function(player, formname, fields) if string.sub(formname, 1, 13) == "commandblock_" then - if not fields.submit and not fields.doc then + if not fields.submit and not fields.key_enter and not fields.doc then return end local privs = minetest.get_player_privs(player:get_player_name())