ContainmentFieldComponent's garbage destruction can now be disabled (#29376)
* Garbage Vaporizer 3000 + DestroyGarbage bool property + DestroyGarbage property check when dealing with incoming trash * Update ContainmentFieldComponent.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ public sealed class ContainmentFieldSystem : EntitySystem
|
||||
{
|
||||
var otherBody = args.OtherEntity;
|
||||
|
||||
if (HasComp<SpaceGarbageComponent>(otherBody))
|
||||
if (component.DestroyGarbage && HasComp<SpaceGarbageComponent>(otherBody))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("comp-field-vaporized", ("entity", otherBody)), uid, PopupType.LargeCaution);
|
||||
QueueDel(otherBody);
|
||||
|
||||
Reference in New Issue
Block a user