]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed "Dropping things makes you teleport" (#20919)
authormokiros <Mokiros@yandex.ru>
Wed, 11 Oct 2023 13:26:22 +0000 (16:26 +0300)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2023 13:26:22 +0000 (00:26 +1100)
Content.Shared/Hands/EntitySystems/SharedHandsSystem.Drop.cs

index 06d6526566bfebd684ca4fa2948131a846959831..77752c4fbdeb7cbf936ed10e0bed8ad1c66c2b96 100644 (file)
@@ -103,7 +103,7 @@ public abstract partial class SharedHandsSystem
         }
 
         var target = targetDropLocation.Value.ToMap(EntityManager, TransformSystem);
-        TransformSystem.SetWorldPosition(userXform, GetFinalDropCoordinates(uid, userXform.MapPosition, target));
+        TransformSystem.SetWorldPosition(itemXform, GetFinalDropCoordinates(uid, userXform.MapPosition, target));
         return true;
     }