update old metadata value

This commit is contained in:
flux 2022-10-10 15:19:06 -07:00
parent 64a286d9b0
commit c0d63eb1e7
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ local api = {
function api.update(pos, node)
local node_name = (node or minetest.get_node(pos)).name
local meta = minetest.get_meta(pos)
if meta:get_string("public") == "public" then
meta:set_int("public", 2)
end
local public = meta:get_int("public")
local get_fs_parts = api.get_fs_parts_by_node_name[node_name]