diff options
author | Loïc Blot <lblot@infopro-digital.com> | 2017-03-28 14:50:17 +0200 |
---|---|---|
committer | Loïc Blot <lblot@infopro-digital.com> | 2017-03-28 14:50:17 +0200 |
commit | 1b299b40391b4ea0fe058b63aad14e3360e917d9 (patch) | |
tree | 485d993b712df19bc1ab5f10d8f1dae0ea9289d2 /builtin | |
parent | 7c85405d96bf10afa83192b3820bacf6e7ccea9f (diff) | |
download | minetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.tar.gz minetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.tar.bz2 minetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.zip |
Fix a type bug in colorize function
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/common/misc_helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 1d5b51fc6..cf76fbde9 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -667,7 +667,7 @@ else end 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) for i, line in ipairs(lines) do |