Format fix

This commit is contained in:
Buhallin 2023-03-06 23:05:14 -08:00
parent cae7f99b3e
commit f7587133a4
No known key found for this signature in database
GPG Key ID: DB3C362823852294

View File

@ -286,8 +286,8 @@ function buildConnection(cardId, iconCardList)
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][card.getGUID()] == ONE_WAY
or locationConnections[connectedGuid][card.getGUID()] == BIDIRECTIONAL) then
and (locationConnections[connectedGuid][card.getGUID()] == ONE_WAY
or locationConnections[connectedGuid][card.getGUID()] == BIDIRECTIONAL) then
locationConnections[connectedGuid][card.getGUID()] = BIDIRECTIONAL
locationConnections[card.getGUID()][connectedGuid] = nil
else