mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 15:17:23 +01:00
refactor: update label indexing to use current length for state and custom labels
This commit is contained in:
parent
25824fe39c
commit
5f3592412b
1 changed files with 2 additions and 2 deletions
|
|
@ -1136,7 +1136,7 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
const fontSize = fontSizeAttr ? parseFloat(fontSizeAttr) : 100;
|
||||
|
||||
pack.labels.push({
|
||||
i: labelId++,
|
||||
i: pack.labels.length,
|
||||
type: "state",
|
||||
stateId: stateId,
|
||||
text: text,
|
||||
|
|
@ -1238,7 +1238,7 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
|
||||
if (pathPoints.length > 0) {
|
||||
pack.labels.push({
|
||||
i: labelId++,
|
||||
i: pack.labels.length,
|
||||
type: "custom",
|
||||
group: group,
|
||||
text: text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue