Fixed duplicate button
This commit is contained in:
parent
5496765191
commit
1d18139e48
1 changed files with 2 additions and 2 deletions
|
@ -164,8 +164,8 @@ appendPortals()
|
||||||
if (disabledPortals.includes('mirror')) portals = portals.filter(x => !mirrorPortals.includes(x[0]))
|
if (disabledPortals.includes('mirror')) portals = portals.filter(x => !mirrorPortals.includes(x[0]))
|
||||||
|
|
||||||
if (disabledPortals.includes('dupe')) {
|
if (disabledPortals.includes('dupe')) {
|
||||||
portals.forEach((x, y) => {if (portals[y+1][0] && portals[y+1][0] == x[0]) portals[y][0] = null;})
|
portals.reverse().forEach((x, y) => {if (portals[y+1] && portals[y+1][0] == x[0]) portals[y][0] = null;})
|
||||||
portals = portals.filter(x => x[0] != null)
|
portals = portals.reverse().filter(x => x[0] != null)
|
||||||
}
|
}
|
||||||
|
|
||||||
appendPortals()
|
appendPortals()
|
||||||
|
|
Loading…
Reference in a new issue