From c5a2f0facca6d079238c735cfb7fc9f1f4654e37 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 20 Dec 2013 18:48:46 -0500 Subject: [PATCH] Add wrench serialization format version --- wrench/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2