Replace EntityPrototype.NoSpawn with EntityPrototype.HideSpawnMenu (#30082)

NoSpawn

Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
Plykiya
2024-07-16 07:29:31 -07:00
committed by GitHub
parent 2e3d2db97e
commit db3f304f4b
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ public sealed class RandomGiftSystem : EntitySystem
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);

View File

@@ -78,7 +78,7 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
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