diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-12-20 18:48:46 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-20 18:48:46 -0500 |
commit | c5a2f0facca6d079238c735cfb7fc9f1f4654e37 (patch) | |
tree | c117920bd01d8b2e12dbfc5d7d22e3736805e237 /wrench | |
parent | 731a82169b01116a4b707d9ecca3c7c9ca930abc (diff) |
Add wrench serialization format version
Diffstat (limited to 'wrench')
-rw-r--r-- | wrench/init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |