From: ShadowNinja Date: Fri, 20 Dec 2013 23:48:46 +0000 (-0500) Subject: Add wrench serialization format version X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c5a2f0facca6d079238c735cfb7fc9f1f4654e37;p=zefram%2Fminetest%2Ftechnic.git Add wrench serialization format version --- diff --git a/wrench/init.lua b/wrench/init.lua index cc18de1..0137f17 100644 --- a/wrench/init.lua +++ b/wrench/init.lua @@ -8,6 +8,8 @@ To pickup a node simply right click on it. If the node contains a formspec, 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 @@ minetest.register_tool("wrench:wrench", { 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