Converted everything to use collision and physics component interfaces.
This commit is contained in:
@@ -143,10 +143,10 @@ namespace Content.Shared.GameObjects.Components.Movement
|
||||
public override void OnAdd()
|
||||
{
|
||||
// This component requires that the entity has a PhysicsComponent.
|
||||
if (!Owner.HasComponent<PhysicsComponent>())
|
||||
if (!Owner.HasComponent<IPhysicsComponent>())
|
||||
Logger.Error(
|
||||
$"[ECS] {Owner.Prototype?.Name} - {nameof(SharedPlayerInputMoverComponent)} requires" +
|
||||
$" {nameof(PhysicsComponent)}. ");
|
||||
$" {nameof(IPhysicsComponent)}. ");
|
||||
|
||||
base.OnAdd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user