ShadowNinja
2013-12-21 c5a2f0facca6d079238c735cfb7fc9f1f4654e37
Add wrench serialization format version
1 files modified
5 ■■■■ changed files
wrench/init.lua 5 ●●●● patch | view | raw | blame | history
wrench/init.lua
@@ -8,6 +8,8 @@
you will need to shift+right click instead.
--]]
local LATEST_SERIALIZATION_VERSION = 1
wrench = {}
local modpath = minetest.get_modpath(minetest.get_current_modname())
@@ -116,7 +118,8 @@
        local metadata = {}
        metadata.name = name
        metadata.version = LATEST_SERIALIZATION_VERSION
        local inv = meta:get_inventory()
        local lists = {}
        for _, listname in pairs(def.lists or {}) do