Skip to content

Commit

Permalink
Replace EntityPrototype.NoSpawn with EntityPrototype.HideSpawnMenu (#…
Browse files Browse the repository at this point in the history
…30082)

NoSpawn

Co-authored-by: plykiya <[email protected]>
  • Loading branch information
2 people authored and sleepyyapril committed Nov 16, 2024
1 parent 801ae49 commit c8d8981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Holiday/Christmas/RandomGiftSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void BuildIndex()

foreach (var proto in _prototype.EnumeratePrototypes<EntityPrototype>())
{
if (proto.Abstract || proto.NoSpawn || proto.Components.ContainsKey(mapGridCompName) || !proto.Components.ContainsKey(physicsCompName))
if (proto.Abstract || proto.HideSpawnMenu || proto.Components.ContainsKey(mapGridCompName) || !proto.Components.ContainsKey(physicsCompName))
continue;

_possibleGiftsUnsafe.Add(proto.ID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected virtual void UpdateSprite(EntityUid uid, EntityPrototype proto) { }
public bool IsValidTarget(EntityPrototype proto, SlotFlags chameleonSlot = SlotFlags.NONE)
{
// check if entity is valid
if (proto.Abstract || proto.NoSpawn)
if (proto.Abstract || proto.HideSpawnMenu)
return false;

// check if it is marked as valid chameleon target
Expand Down

0 comments on commit c8d8981

Please sign in to comment.