fix: fix unnecessary devices in shitsilo (#211)

This commit is contained in:
ThereDrD0
2024-03-16 18:31:06 +03:00
committed by GitHub
parent 8ccf29a2fc
commit bbb2059482
8 changed files with 37 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using Content.Shared._White.ShitSilo;
using Content.Shared.Interaction;
using Content.Shared.Interaction.Components;
using Content.Shared.Lathe;
@@ -295,7 +296,7 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
var multiplier = TryComp<StackComponent>(toInsert, out var stackComponent) ? stackComponent.Count : 1;
var totalVolume = 0;
var gridUid = HasComp<LatheComponent>(receiver) &&
var gridUid = HasComp<BluespaceSiloComponent>(receiver) &&
TryComp<TransformComponent>(receiver, out var transformComponent)
? transformComponent.GridUid
: null;