Update MoverController.cs to not use Component.Owner (#29965)
* Update MoverController.cs * Update a bunch of movement code to use Entity<T> * Last errors * wow, there were more errors --------- Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -128,7 +128,7 @@ namespace Content.Server.Ghost
|
||||
private void OnRelayMoveInput(EntityUid uid, GhostOnMoveComponent component, ref MoveInputEvent args)
|
||||
{
|
||||
// If they haven't actually moved then ignore it.
|
||||
if ((args.Component.HeldMoveButtons &
|
||||
if ((args.Entity.Comp.HeldMoveButtons &
|
||||
(MoveButtons.Down | MoveButtons.Left | MoveButtons.Up | MoveButtons.Right)) == 0x0)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user