Remove disposals compref (#19558)

This one was relatively painless.
This commit is contained in:
metalgearsloth
2023-08-31 11:08:23 +10:00
committed by GitHub
parent 850a542067
commit b08967b752
6 changed files with 18 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ public sealed class DumpableSystem : EntitySystem
if (!args.CanReach || args.Handled)
return;
if (!HasComp<SharedDisposalUnitComponent>(args.Target) && !HasComp<PlaceableSurfaceComponent>(args.Target))
if (!_disposalUnitSystem.HasDisposals(args.Target) && !HasComp<PlaceableSurfaceComponent>(args.Target))
return;
StartDoAfter(uid, args.Target.Value, args.User, component);
@@ -72,7 +72,7 @@ public sealed class DumpableSystem : EntitySystem
if (!TryComp<SharedStorageComponent>(uid, out var storage) || storage.StoredEntities == null || storage.StoredEntities.Count == 0)
return;
if (HasComp<SharedDisposalUnitComponent>(args.Target))
if (_disposalUnitSystem.HasDisposals(args.Target))
{
UtilityVerb verb = new()
{
@@ -142,7 +142,7 @@ public sealed class DumpableSystem : EntitySystem
var dumped = false;
if (HasComp<SharedDisposalUnitComponent>(args.Args.Target.Value))
if (_disposalUnitSystem.HasDisposals(args.Args.Target.Value))
{
dumped = true;