-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
code currently has an error on this line
MOAR/src/Spawning/updateSpawnLocations.ts
Line 41 in 0d4bece
| possibleSpawnList.push(point); |
new array will contain two references to the same player object
MOAR/src/Spawning/updateSpawnLocations.ts
Lines 47 to 50 in 0d4bece
| locationList[index].base.SpawnPointParams = [ | |
| ...possibleSpawnList, | |
| ...sortedSpawnPointList.filter((point) => point["type"] !== "player"), | |
| ]; |
If remove the object push, the logic works correctly and the player changes positions and presets after each map restart (before this, you had to restart the server)
I didn't dig deep, but I put up with this bug for a long time until I found the cause directly in MOAR. I found at least one comment on the hub forum, so I'm not the only one who encountered this bug.
and sorry in advance for my English
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels