From 5b9985838f1dc157cb9b60fdec501efa093f1034 Mon Sep 17 00:00:00 2001 From: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com> Date: Wed, 25 Dec 2024 01:00:24 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=BE=D0=B6=D0=B4=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=B5=D0=BD=D1=81=D0=BA=D0=B0=D1=8F=20=D1=80=D0=B5=D0=B7?= =?UTF-8?q?=D0=BD=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Misc/ChristmasLights/ChristmasLightsVisualiserSystem.cs | 2 +- Content.Server/_White/Misc/ChristmasLightsSystem.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/_White/Misc/ChristmasLights/ChristmasLightsVisualiserSystem.cs b/Content.Client/_White/Misc/ChristmasLights/ChristmasLightsVisualiserSystem.cs index 9243eb4508..0eb3c80ff5 100644 --- a/Content.Client/_White/Misc/ChristmasLights/ChristmasLightsVisualiserSystem.cs +++ b/Content.Client/_White/Misc/ChristmasLights/ChristmasLightsVisualiserSystem.cs @@ -95,7 +95,7 @@ private void OnChristmasLightsVerbs(EntityUid uid, ChristmasLightsComponent comp - // Funny shitcode game: everything that gets called in FrameUpdate() must be coded as if it's from a shader. + // Funny shitcode game: everything that gets called in FrameUpdate() must be coded as if it's in a shader. diff --git a/Content.Server/_White/Misc/ChristmasLightsSystem.cs b/Content.Server/_White/Misc/ChristmasLightsSystem.cs index 0d678a29e5..c0d84b1b63 100644 --- a/Content.Server/_White/Misc/ChristmasLightsSystem.cs +++ b/Content.Server/_White/Misc/ChristmasLightsSystem.cs @@ -85,7 +85,8 @@ private void OnChristmasLightsModerateTrolling(EntityUid uid, ChristmasLightsCom int GetNextModeIndex(ChristmasLightsComponent comp) // cycles modes as usual, but also handles the -1 case { if (comp.CurrentModeIndex == -1) return -1; - return (comp.CurrentModeIndex + 1) % comp.modes.Count; + comp.CurrentModeIndex = (comp.CurrentModeIndex + 1) % comp.modes.Count; + return comp.CurrentModeIndex; } private void OnModeChangeAttempt(ChangeChristmasLightsModeAttemptEvent args, EntitySessionEventArgs sessionArgs)