]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix StepTrigger blacklist not working (#26968)
authorno <165581243+pissdemon@users.noreply.github.com>
Mon, 15 Apr 2024 01:27:58 +0000 (03:27 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 01:27:58 +0000 (21:27 -0400)
Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs

index b4ac2cde75637207c55849a64c22d9a4c492596b..d81ad754d1ef8ae8575ecb6d86e355d11271e085 100644 (file)
@@ -59,7 +59,7 @@ public sealed class StepTriggerSystem : EntitySystem
 
         if (component.Blacklist != null && TryComp<MapGridComponent>(transform.GridUid, out var grid))
         {
-            var positon = _map.LocalToTile(uid, grid, transform.Coordinates);
+            var positon = _map.LocalToTile(transform.GridUid.Value, grid, transform.Coordinates);
             var anch = _map.GetAnchoredEntitiesEnumerator(uid, grid, positon);
 
             while (anch.MoveNext(out var ent))