diff --git a/api.lua b/api.lua index a8884cb..e3e9dcc 100644 --- a/api.lua +++ b/api.lua @@ -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