allow writing # on signs

This commit is contained in:
OgelGames
2021-06-05 17:06:08 +10:00
parent 3ee06f9ba2
commit c08eb3452f
2 changed files with 4 additions and 3 deletions

View File

@ -555,8 +555,9 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi
end
end
local c = word:sub(i, i)
if c == "#" then
local cc = tonumber(word:sub(i+1, i+1), 16)
local c2 = word:sub(i+1, i+1)
if c == "#" and c2 ~= "#" then
local cc = tonumber(c2, 16)
if cc then
i = i + 1
cur_color = cc