Skip to content

Commit

Permalink
Try not to duplicate random spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrptonaught committed Feb 8, 2024
1 parent 5b3499c commit 95f14b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void setInitialSpawns(boolean central) {
unusedInitialSpawns = new ArrayList<>(Arrays.asList(getSizedAddon().center_spawn_coords));
} else {
unusedInitialSpawns = new ArrayList<>(Arrays.asList(getSizedAddon().random_spawn_coords));
unusedRandomSpawns = unusedInitialSpawns;
}
}

Expand All @@ -68,5 +69,4 @@ public String getUnusedRandomSpawn() {

return unusedRandomSpawns.remove(getWorld().random.nextInt(unusedRandomSpawns.size()));
}

}

0 comments on commit 95f14b6

Please sign in to comment.