From 89b90165862935ed4be1a4e79d2b5fea154698dd Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 26 Jul 2023 12:47:07 +1000 Subject: [PATCH] fix(init): enable ignore_invalid for msgpack Needed to prevent errors when packing glm polygons and such. --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index d2c92d2de..cd05e958e 100644 --- a/init.lua +++ b/init.lua @@ -17,6 +17,9 @@ local status = export.hasLoaded() if status ~= true then error(status, 2) end +-- Ignore invalid types during msgpack.pack (e.g. userdata) +msgpack.setoption('ignore_invalid', true) + ----------------------------------------------------------------------------------------------- -- Module -----------------------------------------------------------------------------------------------