0
0
Fork 0

Also save cmd block on enter key

This commit is contained in:
Wuzzy 2018-05-16 18:16:17 +02:00
parent 689aa84c28
commit 7c434d85ed
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ minetest.register_node("mesecons_commandblock:commandblock_on", {
minetest.register_on_player_receive_fields(function(player, formname, fields) minetest.register_on_player_receive_fields(function(player, formname, fields)
if string.sub(formname, 1, 13) == "commandblock_" then 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 return
end end
local privs = minetest.get_player_privs(player:get_player_name()) local privs = minetest.get_player_privs(player:get_player_name())