mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-22 22:12:30 +01:00
Fix uneditable command block when empty
This commit is contained in:
@ -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).."]"
|
||||
|
Reference in New Issue
Block a user