mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
fix: disablepve in-raid bug when finding tooltip (!119)
should fix SPT-AKI/Issues#640 Reviewed-on: SPT-AKI/Modules#119 Co-authored-by: kiobu <kiobu@sdf.org> Co-committed-by: kiobu <kiobu@sdf.org>
This commit is contained in:
parent
d9a4df3a03
commit
5676c58fce
@ -21,7 +21,8 @@ namespace Aki.Custom.Patches
|
|||||||
private static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState)
|
private static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState)
|
||||||
{
|
{
|
||||||
____notAvailableState.SetActive(true);
|
____notAvailableState.SetActive(true);
|
||||||
Object.FindObjectsOfType<HoverTooltipArea>().Where(o => o.name == "Locked").Single().SetMessageText("<color=#51c6db>SPT-AKI</color> is already PvE.");
|
Object.FindObjectsOfType<HoverTooltipArea>().Where(o => o.name == "Locked").SingleOrDefault()?.SetMessageText("<color=#51c6db>SPT-AKI</color> is already PvE.");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user