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,6 +1095,9 @@ export default class MapVote extends DiscordBasePlugin {
newLayer.teams[ 1 ].commander = newLayer.teams[ 0 ].commander
}
if (Layers._layers && Layers._layers instanceof Map)
Layers._layers.set(newLayer.layerid, newLayer);
else
Layers.layers.push(newLayer);
}
}