Skip to content

Commit

Permalink
Recognize N14EmptySlot and never spawn it
Browse files Browse the repository at this point in the history
This prevents the game from generating a bunch of errors overfilling
N14EmptySlot's at map init.
  • Loading branch information
Partmedia committed Jan 17, 2025
1 parent 65dc406 commit c987407
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Shared/Storage/EntitySpawnEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ public static List<string> GetSpawns(IEnumerable<EntitySpawnEntry> entries,
if (entry.PrototypeId == null)
break;

// special handling for N14EmptySlot: just never spawn it
if (entry.PrototypeId == "N14EmptySlot")
break;

// Dice roll succeeded, add item and break loop
var amount = (int) entry.GetAmount(random);

Expand Down

0 comments on commit c987407

Please sign in to comment.