Cleanup: Remove redundant checks from `SharedWieldableSystem` (#35466)

Cleanup
This commit is contained in:
Winkarst
2025-02-24 22:22:19 +03:00
committed by GitHub
parent 51104a7316
commit 670791ac49

View File

@@ -126,13 +126,11 @@ public abstract class SharedWieldableSystem : EntitySystem
private void OnSpeedModifierWielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemWieldedEvent args) private void OnSpeedModifierWielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemWieldedEvent args)
{ {
if (args.User != null)
_movementSpeedModifier.RefreshMovementSpeedModifiers(args.User); _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
} }
private void OnSpeedModifierUnwielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemUnwieldedEvent args) private void OnSpeedModifierUnwielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemUnwieldedEvent args)
{ {
if (args.User != null)
_movementSpeedModifier.RefreshMovementSpeedModifiers(args.User); _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
} }