mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-30 09:27:36 +01:00
Add wrench serialization format version
This commit is contained in:
parent
731a82169b
commit
c5a2f0facc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user