aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.lua2
-rw-r--r--nomsu_compiler.moon2
2 files changed, 2 insertions, 2 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)
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index 5cd7863..7ab2494 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -277,7 +277,7 @@ compile = setmetatable({
bit_lua = LuaCode\from bit.source, "List(function(add)",
"\n ", bit_lua,
"\nend):joined()"
- elseif bit.type != "Text" and bit.type != "Number"
+ elseif bit.type != "Text"
bit_lua = LuaCode\from(bit.source, "tostring(",bit_lua,")")
add_bit bit_lua