From f15ed2ba507d59b6293f28cf0ee0bdb9efaf5af8 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:33:48 +0200 Subject: [PATCH] Updates ComponentHandleState usages to be by-ref (#4535) --- Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs | 2 +- Content.Shared/Placeable/PlaceableSurfaceSystem.cs | 2 +- Content.Shared/Stacks/SharedStackSystem.cs | 2 +- Content.Shared/SubFloor/SubFloorHideSystem.cs | 2 +- RobustToolbox | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs index e67f5ae7da..ba4f52ba43 100644 --- a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs +++ b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs @@ -24,7 +24,7 @@ namespace Content.Shared.Chemistry SubscribeLocalEvent(AddComponent); } - private void OnMovespeedHandleState(EntityUid uid, MovespeedModifierMetabolismComponent component, ComponentHandleState args) + private void OnMovespeedHandleState(EntityUid uid, MovespeedModifierMetabolismComponent component, ref ComponentHandleState args) { if (args.Current is not MovespeedModifierMetabolismComponentState cast) return; diff --git a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs index eddb259552..7a683c03b5 100644 --- a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs +++ b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs @@ -56,7 +56,7 @@ namespace Content.Shared.Placeable args.Handled = true; } - private void OnHandleState(EntityUid uid, PlaceableSurfaceComponent component, ComponentHandleState args) + private void OnHandleState(EntityUid uid, PlaceableSurfaceComponent component, ref ComponentHandleState args) { if (args.Current is not PlaceableSurfaceComponentState state) return; diff --git a/Content.Shared/Stacks/SharedStackSystem.cs b/Content.Shared/Stacks/SharedStackSystem.cs index a9a74547fd..58d133d603 100644 --- a/Content.Shared/Stacks/SharedStackSystem.cs +++ b/Content.Shared/Stacks/SharedStackSystem.cs @@ -62,7 +62,7 @@ namespace Content.Shared.Stacks RaiseLocalEvent(uid, new StackCountChangedEvent(old, component.Count)); } - private void OnStackHandleState(EntityUid uid, SharedStackComponent component, ComponentHandleState args) + private void OnStackHandleState(EntityUid uid, SharedStackComponent component, ref ComponentHandleState args) { if (args.Current is not StackComponentState cast) return; diff --git a/Content.Shared/SubFloor/SubFloorHideSystem.cs b/Content.Shared/SubFloor/SubFloorHideSystem.cs index 43f895bdf1..aab45490dc 100644 --- a/Content.Shared/SubFloor/SubFloorHideSystem.cs +++ b/Content.Shared/SubFloor/SubFloorHideSystem.cs @@ -89,7 +89,7 @@ namespace Content.Shared.SubFloor UpdateEntity(uid); } - private void HandleComponentState(EntityUid uid, SubFloorHideComponent component, ComponentHandleState args) + private void HandleComponentState(EntityUid uid, SubFloorHideComponent component, ref ComponentHandleState args) { if (args.Current is not SubFloorHideComponentState state) return; diff --git a/RobustToolbox b/RobustToolbox index 766f6dc93d..a7f85b53f8 160000 --- a/RobustToolbox +++ b/RobustToolbox @@ -1 +1 @@ -Subproject commit 766f6dc93d2adfe65974a9e622bc06f1a9c27177 +Subproject commit a7f85b53f8743fcb1201af23a6d6624b1688220f