Fixing some warnings (#6250)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
@@ -208,7 +208,7 @@ namespace Content.Server.Climbing.Components
|
||||
|
||||
var result = await EntitySystem.Get<DoAfterSystem>().WaitDoAfter(doAfterEventArgs);
|
||||
|
||||
if (result != DoAfterStatus.Cancelled && _entities.TryGetComponent(user, out PhysicsComponent? body) && body.Fixtures.Count >= 1)
|
||||
if (result != DoAfterStatus.Cancelled && _entities.TryGetComponent(user, out FixturesComponent? fixtureComp) && fixtureComp.Fixtures.Count >= 1)
|
||||
{
|
||||
// TODO: Remove the copy-paste code
|
||||
var userPos = _entities.GetComponent<TransformComponent>(user).WorldPosition;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Content.Server.Climbing.Components
|
||||
get => base.IsClimbing;
|
||||
set
|
||||
{
|
||||
if (_isClimbing == value)
|
||||
if (base.IsClimbing == value)
|
||||
return;
|
||||
|
||||
base.IsClimbing = value;
|
||||
@@ -102,7 +102,7 @@ namespace Content.Server.Climbing.Components
|
||||
|
||||
public override ComponentState GetComponentState()
|
||||
{
|
||||
return new ClimbModeComponentState(_isClimbing, OwnerIsTransitioning);
|
||||
return new ClimbModeComponentState(base.IsClimbing, OwnerIsTransitioning);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user