@@ -1,7 +1,6 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Portal
|
||||
@@ -14,7 +13,7 @@ namespace Content.Shared.GameObjects.Components.Portal
|
||||
{
|
||||
base.OnAdd();
|
||||
|
||||
if (Owner.TryGetComponent<IPhysBody>(out var physics))
|
||||
if (Owner.TryGetComponent<IPhysicsComponent>(out var physics))
|
||||
{
|
||||
physics.Hard = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user