diff --git a/NebulaPatcher/Patches/Transpilers/UIProductEntry_Transpiler.cs b/NebulaPatcher/Patches/Transpilers/UIProductEntry_Transpiler.cs index 1b8d6dd85..68d4f0538 100644 --- a/NebulaPatcher/Patches/Transpilers/UIProductEntry_Transpiler.cs +++ b/NebulaPatcher/Patches/Transpilers/UIProductEntry_Transpiler.cs @@ -37,20 +37,6 @@ private static IEnumerable UpdateExtraProductTexts_Transpiler(I AccessTools.Method(typeof(UIProductEntry_Transpiler), nameof(GetFactoryIndex))) ) .InstructionEnumeration(); - /* - // planetData.factory != null => GetFactoryIndex(planetData) != -1 - instructions = new CodeMatcher(instructions) - .MatchForward(false, - new CodeMatch(OpCodes.Ldfld, AccessTools.Field(typeof(PlanetData), nameof(PlanetData.factory))), - new CodeMatch(OpCodes.Brfalse) - ) - .Repeat(matcher => matcher - .SetAndAdvance(OpCodes.Call, AccessTools.Method(typeof(UIProductEntry_Transpiler), nameof(GetFactoryIndex))) - .InsertAndAdvance(new CodeInstruction(OpCodes.Ldc_I4_M1)) - .SetOpcodeAndAdvance(OpCodes.Beq_S) - ) - .InstructionEnumeration() - */ instructions = new CodeMatcher(instructions) .MatchForward(false,