]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Kitchen Spike Paralysis by removing an unused subscription. (#42078)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Fri, 26 Dec 2025 07:41:27 +0000 (23:41 -0800)
committerGitHub <noreply@github.com>
Fri, 26 Dec 2025 07:41:27 +0000 (07:41 +0000)
* remove

* ACK ACK ACK ACK

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs
Content.Shared/Movement/Events/UpdateCanMoveEvent.cs

index 7e7dbd744e3d0b9014491566e662e99b40518329..938aefc60117774d30809e5b47a8dffffc584fad 100644 (file)
@@ -70,7 +70,6 @@ public sealed class SharedKitchenSpikeSystem : EntitySystem
 
         // Prevent the victim from doing anything while on the spike.
         SubscribeLocalEvent<KitchenSpikeHookedComponent, ChangeDirectionAttemptEvent>(OnAttempt);
-        SubscribeLocalEvent<KitchenSpikeHookedComponent, UpdateCanMoveEvent>(OnAttempt);
         SubscribeLocalEvent<KitchenSpikeHookedComponent, UseAttemptEvent>(OnAttempt);
         SubscribeLocalEvent<KitchenSpikeHookedComponent, ThrowAttemptEvent>(OnAttempt);
         SubscribeLocalEvent<KitchenSpikeHookedComponent, DropAttemptEvent>(OnAttempt);
index d9772c1cf4c62e8b4ac0d4047714a8db467417ac..3efeaeaf4c73ae117d284b128eaf1ebc324e3a76 100644 (file)
@@ -1,11 +1,17 @@
+using Content.Shared.ActionBlocker;
 using Content.Shared.Movement.Components;
 
 namespace Content.Shared.Movement.Events;
 
 /// <summary>
-///     Raised whenever <see cref="IMoverComponent.CanMove"/> needs to be updated. Cancel this event to prevent a
-///     mover from moving.
+///     Raised whenever <see cref="InputMoverComponent.CanMove"/> needs to be updated.
+///     Cancel this event to prevent a mover from moving.
 /// </summary>
+/// <remarks>
+///     This is not an attempt event and the result is cached.
+///     If you subscribe to this you must also call <see cref="ActionBlockerSystem.UpdateCanMove(EntityUid,InputMoverComponent?)"/>
+///     both when you want to prevent a mob from moving, and when you want to allow them to move again!
+/// </remarks>
 public sealed class UpdateCanMoveEvent : CancellableEntityEventArgs
 {
     public UpdateCanMoveEvent(EntityUid uid)