mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 22:02:32 +01:00
11 lines
207 B
Lua
11 lines
207 B
Lua
function get_item_meta (string)
|
|
if string.find(string, "return {") then
|
|
return minetest.deserialize(string)
|
|
else return nil
|
|
end
|
|
end
|
|
|
|
function set_item_meta (table)
|
|
return minetest.serialize(table)
|
|
end
|