diff options
Diffstat (limited to 'AnodyneArchipelago/Patches')
-rw-r--r-- | AnodyneArchipelago/Patches/GameplayPatches.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AnodyneArchipelago/Patches/GameplayPatches.cs b/AnodyneArchipelago/Patches/GameplayPatches.cs index 056a855..6a7b621 100644 --- a/AnodyneArchipelago/Patches/GameplayPatches.cs +++ b/AnodyneArchipelago/Patches/GameplayPatches.cs | |||
@@ -37,7 +37,7 @@ namespace AnodyneArchipelago.Patches | |||
37 | Guid entityId = PatchHelper.GetEntityPreset(typeof(TreasureChest), __instance).EntityID; | 37 | Guid entityId = PatchHelper.GetEntityPreset(typeof(TreasureChest), __instance).EntityID; |
38 | if (Locations.LocationsByGuid.ContainsKey(entityId)) | 38 | if (Locations.LocationsByGuid.ContainsKey(entityId)) |
39 | { | 39 | { |
40 | BaseTreasure treasure = new ArchipelagoTreasure(Locations.LocationsByGuid[entityId], __instance.Position); | 40 | BaseTreasure treasure = ArchipelagoTreasure.Create(Locations.LocationsByGuid[entityId], __instance.Position); |
41 | 41 | ||
42 | FieldInfo treasureField = typeof(TreasureChest).GetField("_treasure", BindingFlags.NonPublic | BindingFlags.Instance); | 42 | FieldInfo treasureField = typeof(TreasureChest).GetField("_treasure", BindingFlags.NonPublic | BindingFlags.Instance); |
43 | treasureField.SetValue(__instance, treasure); | 43 | treasureField.SetValue(__instance, treasure); |