From 407a787e75381525c9736d6f801ab775a3e995ca Mon Sep 17 00:00:00 2001 From: izawartka <59137928+izawartka@users.noreply.github.com> Date: Thu, 31 Jul 2025 23:03:20 +0200 Subject: [PATCH] Fixed SpawnInfo parsing *Fixed SpawnInfo.fromText using 1 as the start index instead of 0 --- src/model/spawn-info.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/model/spawn-info.js b/src/model/spawn-info.js index 0ca2696..bc0b734 100644 --- a/src/model/spawn-info.js +++ b/src/model/spawn-info.js @@ -18,11 +18,11 @@ export default class SpawnInfo { static fromText(text) { const values = text.split(","); return new SpawnInfo( - parseFloat(values[1]), // max_length - values[2] === "1", // allow_electric - values[3] === "1", // multiple_units_only - values[4] === "1", // light_only - values[5] // name + parseFloat(values[0]), // max_length + values[1] === "1", // allow_electric + values[2] === "1", // multiple_units_only + values[3] === "1", // light_only + values[4] // name ); } } \ No newline at end of file