Cleanup: Remove redundant checks from `SharedWieldableSystem` (#35466)
Cleanup
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user