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

@@ -8,6 +8,7 @@ using Content.Server.Materials;
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
using Content.Server.Stack;
using Content.Shared._White.ShitSilo;
using Content.Shared.UserInterface;
using Content.Shared.Database;
using Content.Shared.Emag.Components;
@@ -164,7 +165,7 @@ namespace Content.Server.Lathe
? (int) (-amount * component.MaterialUseMultiplier)
: -amount;
var gridUid =
var gridUid = HasComp<BluespaceSiloComponent>(uid) &&
TryComp<TransformComponent>(uid, out var transformComponent) ? transformComponent.GridUid : null;
var gridStorage =