1
0
Fork 0

Fix uneditable command block when empty

This commit is contained in:
Wuzzy 2019-03-16 03:19:54 +01:00
parent 7aaafdca03
commit 522a2b9a73
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ local on_rightclick = function(pos, node, player, itemstack, pointed_thing)
textarea_name = "" textarea_name = ""
submit = "" submit = ""
end end
if commands == "" then if not can_edit and commands == "" then
textarea = "label[0.5,0.5;"..F(S("No commands.")).."]" textarea = "label[0.5,0.5;"..F(S("No commands.")).."]"
else else
textarea = "textarea[0.5,0.5;8.5,4;"..textarea_name..";"..F(S("Commands:"))..";"..F(commands).."]" textarea = "textarea[0.5,0.5;8.5,4;"..textarea_name..";"..F(S("Commands:"))..";"..F(commands).."]"