Skip to content

Commit

Permalink
Fix the colour type
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDotBat authored Nov 25, 2020
1 parent 44a7786 commit 839b0d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sh_messagepack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ local ldexp = math.ldexp
local huge = math.huge
local tconcat = table.concat

local oldType = type
local isColor = IsColor
local function type(var)
if isColor(var) then return "Color" end
return oldType(var)
end

local function argerror(caller, narg, extramsg)
error("bad argument #" .. tostring(narg) .. " to " .. caller .. " (" .. extramsg .. ")")
end
Expand Down

0 comments on commit 839b0d9

Please sign in to comment.