Don't try to remove node from invalid network master

This commit is contained in:
mrkubax10 2024-05-13 19:44:16 +02:00
parent 5b5816a65c
commit 4ac7210f40

View File

@ -514,6 +514,9 @@ end
industrialtest.api.removeNodeFromNetwork=function(pos,nodePos)
local meta=minetest.get_meta(pos)
if not meta:contains("industrialtest.network") then
return
end
local network=minetest.deserialize(meta:get_string("industrialtest.network"))
local removed=false
for key,node in ipairs(network) do