mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 03:10:45 -05:00
Fixed a couple runtime errors
This commit is contained in:
parent
655ef5bb7b
commit
eaf0c40d46
@ -15,9 +15,7 @@ namespace Aki.Core.Patches
|
||||
{
|
||||
try
|
||||
{
|
||||
// NOTE: This doesn't actually check the below, GClass vs Class
|
||||
_ = GClass259.DEBUG_LOGIC; // UPDATE BELOW LINE TOO
|
||||
var type = PatchConstants.EftTypes.Single(t => t.Name == "Class259");
|
||||
var type = PatchConstants.EftTypes.SingleOrDefault(t => t.GetField("TransportPrefixes") != null);
|
||||
|
||||
if (type == null)
|
||||
{
|
||||
|
@ -48,7 +48,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
// `MatchMakerSelectionLocationScreen` OnShowNextScreen
|
||||
return typeof(MainMenuController).GetMethod("method_66", PatchConstants.PrivateFlags);
|
||||
return typeof(MainMenuController).GetMethod("method_68", PatchConstants.PrivateFlags);
|
||||
}
|
||||
|
||||
[PatchTranspiler]
|
||||
|
Loading…
x
Reference in New Issue
Block a user