Skip to content

Commit

Permalink
Fix SimulatedWorld.Initialized getter related error in GameMain_Trans…
Browse files Browse the repository at this point in the history
…piler.cs
  • Loading branch information
PhantomGamers committed Jul 30, 2021
1 parent edd5cfb commit 9ab15d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NebulaPatcher/Patches/Transpilers/GameMain_Transpiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static IEnumerable<CodeInstruction> PickupBeltItems_Transpiler(ILGenerator gen,

//Add my condition
codes.InsertRange(i + 4, new CodeInstruction[] {
new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(SimulatedWorld), nameof(SimulatedWorld.Initialized))),
new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(SimulatedWorld), "get_" + nameof(SimulatedWorld.Initialized))),
new CodeInstruction(OpCodes.Brfalse_S, codes[i+3].operand)
});

Expand Down

0 comments on commit 9ab15d4

Please sign in to comment.