0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 03:50:45 -05:00

Fixed a couple runtime errors

This commit is contained in:
Terkoiz 2023-12-27 20:51:47 +02:00
parent 655ef5bb7b
commit eaf0c40d46
2 changed files with 2 additions and 4 deletions

View File

@ -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)
{

View File

@ -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]