diff --git a/NebulaPatcher/Patches/Transpilers/GameMain_Transpiler.cs b/NebulaPatcher/Patches/Transpilers/GameMain_Transpiler.cs index d7dade51b..aa65aeef3 100644 --- a/NebulaPatcher/Patches/Transpilers/GameMain_Transpiler.cs +++ b/NebulaPatcher/Patches/Transpilers/GameMain_Transpiler.cs @@ -34,7 +34,7 @@ static IEnumerable 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) });