@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user