From c6d7af45fa044bbc3749c8012beb5bcc022e41a2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 26 May 2024 12:50:11 -0400 Subject: Scout locations for personal chest icons --- AnodyneArchipelago/Patches/GameplayPatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AnodyneArchipelago/Patches/GameplayPatches.cs') 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 Guid entityId = PatchHelper.GetEntityPreset(typeof(TreasureChest), __instance).EntityID; if (Locations.LocationsByGuid.ContainsKey(entityId)) { - BaseTreasure treasure = new ArchipelagoTreasure(Locations.LocationsByGuid[entityId], __instance.Position); + BaseTreasure treasure = ArchipelagoTreasure.Create(Locations.LocationsByGuid[entityId], __instance.Position); FieldInfo treasureField = typeof(TreasureChest).GetField("_treasure", BindingFlags.NonPublic | BindingFlags.Instance); treasureField.SetValue(__instance, treasure); -- cgit 1.4.1