Skip to content

Commit

Permalink
Updated Alpha Prefabs CameraDriver.MapPosition patch (#429)
Browse files Browse the repository at this point in the history
The use of map position was changed to a different method, so patch was changed to target it instead.
  • Loading branch information
SokyranTheDragon authored Feb 21, 2024
1 parent 029baca commit 537adc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Mods/AlphaPrefabs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static IntVec3 ReplaceDropPosition(CameraDriver instance)
return DropCellFinder.TradeDropSpot(Find.CurrentMap);
}

[MpCompatTranspiler("AlphaPrefabs.Window_Prefab", "OrderPrefab")]
[MpCompatTranspiler("AlphaPrefabs.Window_Prefab", "GetPosition")]
private static IEnumerable<CodeInstruction> ReplaceCameraMapPosition(IEnumerable<CodeInstruction> instr, MethodBase baseMethod)
{
var target = AccessTools.PropertyGetter(typeof(CameraDriver), nameof(CameraDriver.MapPosition));
Expand Down

0 comments on commit 537adc9

Please sign in to comment.