forked from VoxeLibre/VoxeLibre
Log warning for non-serializable item entity fix
This commit is contained in:
parent
62d5b547a0
commit
a0c9f11af6
|
@ -479,6 +479,13 @@ minetest.register_entity(":__builtin:item", {
|
|||
local stack = ItemStack(self.itemstring)
|
||||
stack:get_meta():from_table(nil)
|
||||
self.itemstring = stack:to_string()
|
||||
minetest.log(
|
||||
"warning",
|
||||
"Overlong item entity metadata removed: “" ..
|
||||
self.itemstring ..
|
||||
"” had serialized length of " ..
|
||||
#data
|
||||
)
|
||||
return self:get_staticdata()
|
||||
end
|
||||
return data
|
||||
|
|
Loading…
Reference in New Issue