mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
fix logic chech in modules/dynamic/auto-update.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
21710bc426
commit
cc4a7cab30
1 changed files with 2 additions and 1 deletions
|
|
@ -1068,7 +1068,8 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
const cellId = +polygon.getAttribute("cell");
|
||||
const size = +polygon.getAttribute("size");
|
||||
|
||||
if (!pointsStr || !cellId || !size) return;
|
||||
// points string must exist, cell attribute must be present, and size must be non-zero
|
||||
if (!pointsStr || polygon.getAttribute("cell") === null || !size) return;
|
||||
|
||||
// Parse points string "x1,y1 x2,y2 x3,y3 ..." into array [[x1,y1], [x2,y2], ...]
|
||||
const points = pointsStr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue