From: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Date: Wed, 16 Apr 2025 11:54:42 +0000 (+0200) Subject: Fix certain foldable items not being possible to store in crates/lockers (#36625) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0da8984431e67ae007f707cd8e3de06b5f325813;p=space-station-14.git Fix certain foldable items not being possible to store in crates/lockers (#36625) Remove OnStoreThisAttempt --- diff --git a/Content.Shared/Foldable/FoldableSystem.cs b/Content.Shared/Foldable/FoldableSystem.cs index 3ece56720a..3ba4201e79 100644 --- a/Content.Shared/Foldable/FoldableSystem.cs +++ b/Content.Shared/Foldable/FoldableSystem.cs @@ -9,6 +9,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Foldable; +// TODO: This system could arguably be refactored into a general state system, as it is being utilized for a lot of different objects with various needs. public sealed class FoldableSystem : EntitySystem { [Dependency] private readonly SharedAppearanceSystem _appearance = default!; @@ -24,7 +25,6 @@ public sealed class FoldableSystem : EntitySystem SubscribeLocalEvent(OnFoldableInit); SubscribeLocalEvent(OnInsertEvent); - SubscribeLocalEvent(OnStoreThisAttempt); SubscribeLocalEvent(OnFoldableOpenAttempt); SubscribeLocalEvent(OnStrapAttempt); @@ -46,12 +46,6 @@ public sealed class FoldableSystem : EntitySystem args.Cancelled = true; } - public void OnStoreThisAttempt(EntityUid uid, FoldableComponent comp, ref InsertIntoEntityStorageAttemptEvent args) - { - if (comp.IsFolded) - args.Cancelled = true; - } - public void OnStrapAttempt(EntityUid uid, FoldableComponent comp, ref StrapAttemptEvent args) { if (comp.IsFolded)