From 522a2b9a733af5d89aa8f3959b10981497594803 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 16 Mar 2019 03:19:54 +0100 Subject: [PATCH] Fix uneditable command block when empty --- 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 7cd7d6c5a5..e8749f026d 100644 --- a/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_commandblock/init.lua @@ -165,7 +165,7 @@ local on_rightclick = function(pos, node, player, itemstack, pointed_thing) textarea_name = "" submit = "" end - if commands == "" then + if not can_edit and commands == "" then textarea = "label[0.5,0.5;"..F(S("No commands.")).."]" else textarea = "textarea[0.5,0.5;8.5,4;"..textarea_name..";"..F(S("Commands:"))..";"..F(commands).."]"