mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
Fix a type bug in colorize function
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
This commit is contained in:
@ -667,7 +667,7 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
function core.colorize(color, message)
|
function core.colorize(color, message)
|
||||||
local lines = message:split("\n", true)
|
local lines = tostring(message):split("\n", true)
|
||||||
local color_code = core.get_color_escape_sequence(color)
|
local color_code = core.get_color_escape_sequence(color)
|
||||||
|
|
||||||
for i, line in ipairs(lines) do
|
for i, line in ipairs(lines) do
|
||||||
|
Reference in New Issue
Block a user