diff --git a/src/api/squaremap/parser.ts b/src/api/squaremap/parser.ts index 58744b3..4b1d489 100644 --- a/src/api/squaremap/parser.ts +++ b/src/api/squaremap/parser.ts @@ -120,8 +120,8 @@ export const parseTowns = async(res: SquaremapMarkerset, removeAccents = false) const points: StrictPoint2D[] = curMarker.points.flat(2) const { townX, townZ } = points.reduce((acc: TownCoords, p) => { - acc.townX.push(roundToNearest16(p.x as number)) - acc.townZ.push(roundToNearest16(p.z as number)) + acc.townX.push(roundToNearest16(p.x)) + acc.townZ.push(roundToNearest16(p.z)) return acc }, { townX: [], townZ: [] })