From 7f05bd7e08252ae5394c16ba6fdfbebff916b072 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 3 Sep 2024 12:27:08 +0100 Subject: [PATCH] Remvoed use of magic string --- project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs b/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs index 034d9a5..b40d8d1 100644 --- a/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs +++ b/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs @@ -57,7 +57,7 @@ namespace SPT.Debugging.Patches { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BotSpawner), "TryToSpawnInZoneInner"); + return AccessTools.Method(typeof(BotSpawner), nameof(BotSpawner.TryToSpawnInZoneInner)); } [PatchPrefix]