1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 15:12:17 +08:00

code cleanup

This commit is contained in:
2023-12-14 21:55:44 +08:00
parent 51f35bb573
commit aae771d730
6 changed files with 10 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ public static class BeltFix
[HarmonyPatch(typeof(ConnGizmoRenderer), "Update")]
public static IEnumerable<CodeInstruction> ConnGizmoRenderer_Update_Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator generator)
{
bool lastIsLdcI4_3 = false;
var lastIsLdcI4_3 = false;
foreach (var instr in instructions)
{
if (lastIsLdcI4_3)

View File

@@ -18,7 +18,7 @@ public class Patch : BaseUnityPlugin, IModCanSave
BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME);
private const ushort SaveVersion = 1;
private static bool _initialized = false;
private static bool _initialized;
public static Cfg Cfg = new();
private static Cfg _oldCfg;