From 38d4ddd7c6febe2c5b2c57622ce50931801de382 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Thu, 10 Jul 2025 02:14:16 +0300 Subject: [PATCH] Quick Fix: Object initialization can be simplified (IDE0017) --- MuzikaGromche/Plugin.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index 9ac9ae6..1eec440 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -184,8 +184,10 @@ namespace MuzikaGromche [HarmonyPrefix] public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state) { - __state = new State(); - __state.prevStateindex = __instance.previousState; + __state = new State + { + prevStateindex = __instance.previousState + }; if (__instance.currentBehaviourStateIndex == 2 && __instance.previousBehaviourStateIndex != 2) { // if just popped out