mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-03 22:17:24 +02: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;
|
const fontSize = fontSizeAttr ? parseFloat(fontSizeAttr) : 100;
|
||||||
|
|
||||||
pack.labels.push({
|
pack.labels.push({
|
||||||
i: labelId++,
|
i: pack.labels.length,
|
||||||
type: "state",
|
type: "state",
|
||||||
stateId: stateId,
|
stateId: stateId,
|
||||||
text: text,
|
text: text,
|
||||||
|
|
@ -1238,7 +1238,7 @@ export function resolveVersionConflicts(mapVersion) {
|
||||||
|
|
||||||
if (pathPoints.length > 0) {
|
if (pathPoints.length > 0) {
|
||||||
pack.labels.push({
|
pack.labels.push({
|
||||||
i: labelId++,
|
i: pack.labels.length,
|
||||||
type: "custom",
|
type: "custom",
|
||||||
group: group,
|
group: group,
|
||||||
text: text,
|
text: text,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue