mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
feat: upgrading Layers.js intrim layer list
This commit is contained in:
parent
07e3bebbce
commit
6c87db8c65
@ -1095,7 +1095,10 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
newLayer.teams[ 1 ].commander = newLayer.teams[ 0 ].commander
|
newLayer.teams[ 1 ].commander = newLayer.teams[ 0 ].commander
|
||||||
}
|
}
|
||||||
|
|
||||||
Layers.layers.push(newLayer);
|
if (Layers._layers && Layers._layers instanceof Map)
|
||||||
|
Layers._layers.set(newLayer.layerid, newLayer);
|
||||||
|
else
|
||||||
|
Layers.layers.push(newLayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user