Merge pull request #228 from argonui/loc-link-pickup-bug
Handle duplicate connections
This commit is contained in:
commit
4863ba585e
@ -309,7 +309,8 @@ function buildConnection(cardId, iconCardList, locData)
|
||||
for _, connectedGuid in ipairs(iconCardList[icon]) do
|
||||
-- If the reciprocal exists, convert it to BiDi, otherwise add as a one-way
|
||||
if locationConnections[connectedGuid] ~= nil
|
||||
and locationConnections[connectedGuid][cardId] == ONE_WAY then
|
||||
and (locationConnections[connectedGuid][cardId] == ONE_WAY
|
||||
or locationConnections[connectedGuid][cardId] == BIDIRECTIONAL) then
|
||||
locationConnections[connectedGuid][cardId] = BIDIRECTIONAL
|
||||
locationConnections[cardId][connectedGuid] = nil
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user