diff --git a/Basalt/objects/Object.lua b/Basalt/objects/Object.lua index bf0f295..2907483 100644 --- a/Basalt/objects/Object.lua +++ b/Basalt/objects/Object.lua @@ -30,7 +30,7 @@ return function(name, basalt) end end end - if(typ=="table")then + if(type(typ)=="table")then for _,v in pairs(typ)do if(v==value)then isValid = true @@ -63,10 +63,12 @@ return function(name, basalt) end if(not isValid)then + local t = type(value) if(type(typ)=="table")then typ = table.concat(typ, ", ") + t = value end - error(self:getType()..": Invalid type for property "..name.."! Expected "..typ..", got "..type(value)) + error(self:getType()..": Invalid type for property "..name.."! Expected "..typ..", got "..t) end return value end diff --git a/Basalt/plugins/bigfonts.lua b/Basalt/plugins/bigfonts.lua index 2dd01bb..e38ec92 100644 --- a/Basalt/plugins/bigfonts.lua +++ b/Basalt/plugins/bigfonts.lua @@ -207,8 +207,8 @@ return { oby = oby or math.floor((oY - cY) / 2) + 1 for i = 1, cY do - self:addFG(1, i, bigfont[2][i]) - self:addBG(1, i, bigfont[3][i]) + self:addFg(1, i, bigfont[2][i]) + self:addBg(1, i, bigfont[3][i]) self:addText(1, i, bigfont[1][i]) end end