projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
731a821
)
Add wrench serialization format version
author
ShadowNinja
<shadowninja@minetest.net>
Fri, 20 Dec 2013 23:48:46 +0000
(18:48 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Fri, 20 Dec 2013 23:48:46 +0000
(18:48 -0500)
wrench/init.lua
patch
|
blob
|
history
diff --git
a/wrench/init.lua
b/wrench/init.lua
index cc18de1f7fbff390afe4de26f79dd923be05e69a..0137f179eb0dd9773933ea8b80586ac395edb9fb 100644
(file)
--- 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