From ac1cdffe0e0c2b586291381c883ad58eac1b840b Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Wed, 22 Nov 2023 18:59:18 +0100 Subject: [PATCH] Fix crash in createNetworkMap --- api.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api.lua b/api.lua index 57f7f65..c1cb20a 100644 --- a/api.lua +++ b/api.lua @@ -408,11 +408,8 @@ industrialtest.api.createNetworkMap=function(pos,addCables,omit) side=sides[sideVector.x..","..sideVector.y..","..sideVector.z], sourceSide=worker.sourceSide }) - if not sides[sideVector.x..","..sideVector.y..","..sideVector.z] then - minetest.debug(minetest.serialize(worker.position)) - end if #connections==1 then - table.remove(workers,i) + foundNewNode=false break end end