mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Fix component constraints (#20241)
This commit is contained in:
@@ -75,7 +75,7 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
}
|
||||
|
||||
// Handle stacks
|
||||
if (TryComp<StackComponent?>(args.Used, out var stack))
|
||||
if (TryComp<StackComponent>(args.Used, out var stack))
|
||||
{
|
||||
if (TryInsertStack(uid, args.Used, component, stack))
|
||||
args.Handled = true;
|
||||
@@ -150,7 +150,7 @@ public sealed class MachineFrameSystem : EntitySystem
|
||||
/// <returns>Whether or not the function had any effect. Does not indicate success.</returns>
|
||||
private bool TryInsertBoard(EntityUid uid, EntityUid used, MachineFrameComponent component)
|
||||
{
|
||||
if (!TryComp<MachineBoardComponent?>(used, out var machineBoard))
|
||||
if (!TryComp<MachineBoardComponent>(used, out var machineBoard))
|
||||
return false;
|
||||
|
||||
if (!_container.TryRemoveFromContainer(used))
|
||||
|
||||
Reference in New Issue
Block a user