From 4ac7210f40a57b656864b22d02d3262a8fa1c124 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Mon, 13 May 2024 19:44:16 +0200 Subject: [PATCH] Don't try to remove node from invalid network master --- api.lua | 3 +++ 1 file changed, 3 insertions(+) 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