1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
y5nw 2025-02-22 23:10:49 +01:00
parent 9db64d5834
commit aa5d8aee1e

View file

@ -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,