mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-02 10:47:38 +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.
|
you will need to shift+right click instead.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
local LATEST_SERIALIZATION_VERSION = 1
|
||||||
|
|
||||||
wrench = {}
|
wrench = {}
|
||||||
|
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||||
@ -116,7 +118,8 @@ minetest.register_tool("wrench:wrench", {
|
|||||||
|
|
||||||
local metadata = {}
|
local metadata = {}
|
||||||
metadata.name = name
|
metadata.name = name
|
||||||
|
metadata.version = LATEST_SERIALIZATION_VERSION
|
||||||
|
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
local lists = {}
|
local lists = {}
|
||||||
for _, listname in pairs(def.lists or {}) do
|
for _, listname in pairs(def.lists or {}) do
|
||||||
|
Loading…
Reference in New Issue
Block a user