CheatEnabler: fix a warning bug

This commit is contained in:
2025-04-19 01:18:21 +08:00
parent 1d01fdbd15
commit d867bca1ba
+2 -1
View File
@@ -235,7 +235,8 @@ public class FactoryPatch: PatchImpl<FactoryPatch>
matcher.Repeat(m =>
{
var label1 = generator.DefineLabel();
m.Advance(1).RemoveInstructions(2).InsertAndAdvance(
m.Advance(3).InsertAndAdvance(
new CodeInstruction(OpCodes.Ldarg_0),
Transpilers.EmitDelegate((WarningSystem w) =>
{
if (NoConditionEnabled.Value)