1
0
mirror of https://github.com/Sokomine/cottages.git synced 2024-11-13 05:50:30 +01:00

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

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]