From aa5d8aee1e71e8f53733bb9bfcc60384fa165ab0 Mon Sep 17 00:00:00 2001 From: y5nw Date: Sat, 22 Feb 2025 23:10:49 +0100 Subject: [PATCH] minor --- builtin/common/serialize.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/common/serialize.lua b/builtin/common/serialize.lua index 3fffcfddc..5577cf991 100644 --- a/builtin/common/serialize.lua +++ b/builtin/common/serialize.lua @@ -109,7 +109,7 @@ local function serialize(value, write) end write(";") references[object] = reference - if type_ ~= "string" then + if type_ == "table" then to_fill[object] = reference end refnum = refnum + 1 @@ -269,7 +269,6 @@ function core.deserialize(str, safe) local env = { inf = math_huge, nan = 0/0, - ItemStack = ItemStack or function(str) return str end, core = { known_metatables = core.known_metatables, serializable_metatables = core.serializable_metatables,