[PropLoadingHexagon] bump version, fix for 2025r179

This commit is contained in:
NotAKidoS 2025-04-03 04:00:08 -05:00
parent d0504fef91
commit e24eae5a22
3 changed files with 8 additions and 9 deletions

View file

@ -50,9 +50,9 @@ public class PropLoadingHexagonMod : MelonMod
);
HarmonyInstance.Patch( // delete mode on prop placeholder
typeof(ControllerRay).GetMethod(nameof(ControllerRay.DeleteSpawnable),
typeof(ControllerRay).GetMethod(nameof(ControllerRay.HandleSpawnableClicked),
BindingFlags.NonPublic | BindingFlags.Instance),
prefix: new HarmonyMethod(typeof(PropLoadingHexagonMod).GetMethod(nameof(OnDeleteSpawnableCheck),
prefix: new HarmonyMethod(typeof(PropLoadingHexagonMod).GetMethod(nameof(OnHandleSpawnableClicked),
BindingFlags.NonPublic | BindingFlags.Static))
);
@ -185,7 +185,7 @@ public class PropLoadingHexagonMod : MelonMod
Loading_Hex_List.Add(loadingHex);
}
private static void OnDeleteSpawnableCheck(ref ControllerRay __instance)
private static void OnHandleSpawnableClicked(ref ControllerRay __instance)
{
if (!__instance._interactDown)
return; // not interacted, no need to check