Fixing some warnings (#6250)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
@@ -73,15 +73,15 @@ namespace Content.Shared.Climbing
|
||||
}
|
||||
}
|
||||
|
||||
protected bool _isClimbing;
|
||||
private bool _isClimbing;
|
||||
|
||||
// TODO: Layers need a re-work
|
||||
private void ToggleSmallPassable(bool value)
|
||||
{
|
||||
// Hope the mob has one fixture
|
||||
if (!_entMan.TryGetComponent<PhysicsComponent>(Owner, out var physicsComponent) || physicsComponent.Deleted) return;
|
||||
if (!_entMan.TryGetComponent<FixturesComponent>(Owner, out var fixturesComponent) || fixturesComponent.Deleted) return;
|
||||
|
||||
foreach (var fixture in physicsComponent.Fixtures)
|
||||
foreach (var fixture in fixturesComponent.Fixtures.Values)
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user