mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 03:33:29 +08:00
CheatEnabler: fix a warning bug
This commit is contained in:
@@ -235,7 +235,8 @@ public class FactoryPatch: PatchImpl<FactoryPatch>
|
|||||||
matcher.Repeat(m =>
|
matcher.Repeat(m =>
|
||||||
{
|
{
|
||||||
var label1 = generator.DefineLabel();
|
var label1 = generator.DefineLabel();
|
||||||
m.Advance(1).RemoveInstructions(2).InsertAndAdvance(
|
m.Advance(3).InsertAndAdvance(
|
||||||
|
new CodeInstruction(OpCodes.Ldarg_0),
|
||||||
Transpilers.EmitDelegate((WarningSystem w) =>
|
Transpilers.EmitDelegate((WarningSystem w) =>
|
||||||
{
|
{
|
||||||
if (NoConditionEnabled.Value)
|
if (NoConditionEnabled.Value)
|
||||||
|
|||||||
Reference in New Issue
Block a user