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], side=sides[sideVector.x..","..sideVector.y..","..sideVector.z],
sourceSide=worker.sourceSide sourceSide=worker.sourceSide
}) })
if not sides[sideVector.x..","..sideVector.y..","..sideVector.z] then
minetest.debug(minetest.serialize(worker.position))
end
if #connections==1 then if #connections==1 then
table.remove(workers,i) foundNewNode=false
break break
end end
end end