Got rid of some IEntities
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Shared.Buckle.Components;
|
||||
using Content.Shared.Buckle.Components;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
@@ -14,7 +14,7 @@ namespace Content.Client.Buckle
|
||||
|
||||
public override bool Buckled => _buckled;
|
||||
|
||||
public override bool TryBuckle(IEntity? user, IEntity to)
|
||||
public override bool TryBuckle(EntityUid user, EntityUid to)
|
||||
{
|
||||
// TODO: Prediction
|
||||
return false;
|
||||
@@ -30,8 +30,7 @@ namespace Content.Client.Buckle
|
||||
_buckled = buckle.Buckled;
|
||||
LastEntityBuckledTo = buckle.LastEntityBuckledTo;
|
||||
DontCollide = buckle.DontCollide;
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(Owner, out SpriteComponent? ownerSprite))
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(OwnerUid, out SpriteComponent? ownerSprite))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user