From 826e172a3af1d040cd3e7365ced4a263c7e6b655 Mon Sep 17 00:00:00 2001
From: XtraCube <72575280+XtraCube@users.noreply.github.com>
Date: Thu, 22 Aug 2024 16:27:59 -0400
Subject: [PATCH] fix for 8.13
---
MiraAPI/MiraAPI.csproj | 9 ++-------
MiraAPI/Patches/Roles/EjectionPatches.cs | 6 +++---
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/MiraAPI/MiraAPI.csproj b/MiraAPI/MiraAPI.csproj
index d15783ec..e4dad349 100644
--- a/MiraAPI/MiraAPI.csproj
+++ b/MiraAPI/MiraAPI.csproj
@@ -9,12 +9,7 @@
Simple and easy to use Among Us modding API.
Angxl, XtraCube
-
-
- Steam
- 2024.8.13
-
-
+
@@ -29,7 +24,7 @@
-
+
diff --git a/MiraAPI/Patches/Roles/EjectionPatches.cs b/MiraAPI/Patches/Roles/EjectionPatches.cs
index f6ca0e11..60c0dfe0 100644
--- a/MiraAPI/Patches/Roles/EjectionPatches.cs
+++ b/MiraAPI/Patches/Roles/EjectionPatches.cs
@@ -11,16 +11,16 @@ public static class EjectionPatches
[HarmonyPatch(nameof(ExileController.Begin))]
public static void Begin(ExileController __instance)
{
- if (!__instance.exiled?.Role || __instance.exiled.Role is not ICustomRole role)
+ if (!__instance.initData.networkedPlayer.Role || __instance.initData.networkedPlayer.Role is not ICustomRole role)
{
return;
}
- if (role.GetCustomEjectionMessage(__instance.exiled) == null)
+ if (role.GetCustomEjectionMessage(__instance.initData.networkedPlayer) == null)
{
return;
}
- __instance.completeString = role.GetCustomEjectionMessage(__instance.exiled);
+ __instance.completeString = role.GetCustomEjectionMessage(__instance.initData.networkedPlayer);
}
}
\ No newline at end of file