technic/technic/helpers.lua
2013-02-21 22:01:49 +01:00

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