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

@@ -5,6 +5,7 @@ using Content.Shared.Popups;
using Content.Shared.Stacks;
using Content.Server.Power.Components;
using Content.Server.Stack;
using Content.Shared._White.ShitSilo;
using Content.Shared.ActionBlocker;
using Content.Shared.Construction;
using Content.Shared.Database;
@@ -78,7 +79,8 @@ public sealed class MaterialStorageSystem : SharedMaterialStorageSystem
volume = sheetsToExtract * volumePerSheet;
}
var gridUid = TryComp<TransformComponent>(uid, out var transformComponent)
var gridUid = HasComp<BluespaceSiloComponent>(uid) &&
TryComp<TransformComponent>(uid, out var transformComponent)
? transformComponent.GridUid
: null;