Skip to content

Commit

Permalink
fix phys on shuttles
Browse files Browse the repository at this point in the history
  • Loading branch information
rhailrake committed Oct 23, 2024
1 parent fe9e685 commit c7a87d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/GameTicking/GameTicker.RoundFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Content.Server.Ghost;
using Content.Server.Maps;
using Content.Server.Roles;
using Content.Server.Shuttles.Components;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.GameTicking;
Expand Down Expand Up @@ -194,6 +195,9 @@ public IReadOnlyList<EntityUid> LoadGameMap(GameMapPrototype map, MapId targetMa
var grids = _mapManager.GetAllMapGrids(targetMapId);
foreach (var grid in grids)
{
if (HasComp<ShuttleComponent>(grid.Owner))
continue;

_physics.SetBodyType(grid.Owner, BodyType.Static);
}
}
Expand Down

0 comments on commit c7a87d9

Please sign in to comment.