Fixes ghosts being affected by gravity.

Fixes #980
This commit is contained in:
Pieter-Jan Briers
2020-05-24 11:40:49 +02:00
parent 65d46899c0
commit 31263f8597
4 changed files with 19 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ using Content.Server.GameObjects.Components.Sound;
using Content.Server.Interfaces.GameObjects.Components.Movement;
using Content.Shared.Audio;
using Content.Shared.GameObjects.Components.Inventory;
using Content.Shared.GameObjects.Components.Movement;
using Content.Shared.Maps;
using Content.Shared.Physics;
using JetBrains.Annotations;
@@ -151,7 +152,8 @@ namespace Content.Server.GameObjects.EntitySystems
physics.SetController<MoverController>();
}
var weightless = _physicsManager.IsWeightless(transform.GridPosition);
var weightless = !transform.Owner.HasComponent<MovementIgnoreGravityComponent>() &&
_physicsManager.IsWeightless(transform.GridPosition);
if (weightless && collider != null)
{