Content mapmanager query changes (#16894)
This commit is contained in:
@@ -103,8 +103,8 @@ public sealed partial class GunSystem : SharedGunSystem
|
||||
var angle = GetRecoilAngle(Timing.CurTime, gun, mapDirection.ToAngle());
|
||||
|
||||
// If applicable, this ensures the projectile is parented to grid on spawn, instead of the map.
|
||||
var fromEnt = MapManager.TryFindGridAt(fromMap, out var grid)
|
||||
? fromCoordinates.WithEntityId(grid.Owner, EntityManager)
|
||||
var fromEnt = MapManager.TryFindGridAt(fromMap, out var gridUid, out var grid)
|
||||
? fromCoordinates.WithEntityId(gridUid, EntityManager)
|
||||
: new EntityCoordinates(MapManager.GetMapEntityId(fromMap.MapId), fromMap.Position);
|
||||
|
||||
// Update shot based on the recoil
|
||||
|
||||
Reference in New Issue
Block a user