Fix crash in createNetworkMap
This commit is contained in:
parent
68ddf0f149
commit
ac1cdffe0e
5
api.lua
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user