1
0
mirror of https://github.com/Sokomine/cottages.git synced 2025-07-03 00:20:24 +02:00

update old metadata value

This commit is contained in:
flux
2022-10-10 15:19:06 -07:00
parent 64a286d9b0
commit c0d63eb1e7

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]