mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: support migration of v0.9 maps
This commit is contained in:
parent
00abd5213b
commit
b267e832b5
5 changed files with 19 additions and 9 deletions
|
|
@ -348,6 +348,10 @@ async function parseLoadedData(data, mapVersion) {
|
|||
.attr("id", "texture")
|
||||
.attr("data-href", "./images/textures/plaster.jpg");
|
||||
}
|
||||
|
||||
if (!emblems.size()) {
|
||||
emblems = viewbox.insert("g", "#labels").attr("id", "emblems").style("display", "none");
|
||||
}
|
||||
})();
|
||||
|
||||
void (function parseGridData() {
|
||||
|
|
@ -457,7 +461,7 @@ async function parseLoadedData(data, mapVersion) {
|
|||
{
|
||||
// dynamically import and run auto-update script
|
||||
const versionNumber = parseFloat(params[0]);
|
||||
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.98.00");
|
||||
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.98.06");
|
||||
resolveVersionConflicts(versionNumber);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue