Fix crash in createNetworkMap

This commit is contained in:
mrkubax10 2023-11-22 18:59:18 +01:00
parent 68ddf0f149
commit ac1cdffe0e

View File

@ -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