aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-07 21:38:41 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-07 21:38:58 -0800
commit5f961d32c4fa9ca4f73da24ea3b73bba8c872c85 (patch)
tree7bcbeb23ff9f6536675a1270e6fa26c905fb8782 /nomsu_compiler.lua
parent3ceca7b635666342bed107bede4eafc1b5a5f482 (diff)
Fix for text interpolation of numbers.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 1 insertions, 1 deletions
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)