Skip to content

Commit

Permalink
Update PollutionPatch.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Byte-Nova committed Oct 30, 2024
1 parent 4f92d23 commit 4bd88d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Client/Patches/PollutionPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Threading;
Expand All @@ -27,8 +28,8 @@ public static class PatchAddPollution
[HarmonyTranspiler]
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
var codes = new List<CodeInstruction>(instructions);
var method = AccessTools.Method(typeof(PatchAddPollution), nameof(StoreNumValue));
List<CodeInstruction> codes = new List<CodeInstruction>(instructions);
MethodInfo method = AccessTools.Method(typeof(PatchAddPollution), nameof(StoreNumValue));

for (int i = 0; i < codes.Count; i++)
{
Expand Down

0 comments on commit 4bd88d3

Please sign in to comment.