Replace EntityPrototype.NoSpawn with EntityPrototype.HideSpawnMenu (#30082)
NoSpawn Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
parent
80c8ae2960
commit
84470154e3
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue