Skip to content

Commit

Permalink
Fix visible color escape sequences when selecting text of posters
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Apr 7, 2024
1 parent 4dc2bb6 commit 6cd04cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions signs/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ local function display_poster(pos, node, player)
style_type[textarea;textcolor=#111]
textarea[0.3,1.5;7,8;;%s;]]=],
titletexture,
minetest.colorize("#111",
minetest.formspec_escape(meta:get_string("text"))))
minetest.formspec_escape(meta:get_string("text")))

if minetest.is_protected(pos, player:get_player_name()) then
fs = string.format("%sbutton_exit[2.5,8;2,1;ok;%s]", fs, FS("Close"))
Expand Down

0 comments on commit 6cd04cb

Please sign in to comment.