feat: upgrading Layers.js intrim layer list

This commit is contained in:
Davide Fantino 2023-03-25 13:14:25 +01:00
parent 07e3bebbce
commit 6c87db8c65

View File

@ -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);
} }
} }
} }