From 5f961d32c4fa9ca4f73da24ea3b73bba8c872c85 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 7 Jan 2019 21:38:41 -0800 Subject: Fix for text interpolation of numbers. --- nomsu_compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_compiler.lua') diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index cbe0c61..20ea6a0 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -357,7 +357,7 @@ local compile = setmetatable({ end if bit.type == "Block" then bit_lua = LuaCode:from(bit.source, "List(function(add)", "\n ", bit_lua, "\nend):joined()") - elseif bit.type ~= "Text" and bit.type ~= "Number" then + elseif bit.type ~= "Text" then bit_lua = LuaCode:from(bit.source, "tostring(", bit_lua, ")") end add_bit(bit_lua) -- cgit v1.2.3