Skip to content

Commit bee7930

Browse files
committed
Potential fix for Fika Headless
1 parent d3b06e0 commit bee7930

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Components/NavMeshDebugComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void Awake()
7070
Directory.CreateDirectory(WaypointsPlugin.MeshFolder);
7171

7272
var gameWorld = Singleton<GameWorld>.Instance;
73-
string mapName = gameWorld.MainPlayer.Location.ToLower();
73+
string mapName = gameWorld.LocationId.ToLower();
7474
string meshFilename = $"{WaypointsPlugin.MeshFolder}\\{mapName}.json";
7575
if (!File.Exists(meshFilename))
7676
{

DrakiaXYZ-Waypoints.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>disable</Nullable>
77
<Authors>DrakiaXYZ</Authors>
88
<Copyright>Copyright © 2025 DrakiaXYZ</Copyright>
9-
<AssemblyVersion>1.8.0</AssemblyVersion>
9+
<AssemblyVersion>1.8.1</AssemblyVersion>
1010
<FileVersion>$(AssemblyVersion)</FileVersion>
1111
<Configurations>Debug;Release;Package</Configurations>
1212
<Version>$(AssemblyVersion)</Version>

Patches/WaypointPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private static void PatchPrefix(BotsController __instance, BotZone[] botZones)
3939
private static void InjectNavmesh(GameWorld gameWorld)
4040
{
4141
// First we load the asset from the bundle
42-
string mapName = gameWorld.MainPlayer.Location.ToLower();
42+
string mapName = gameWorld.LocationId.ToLower();
4343

4444
// Standardize Factory
4545
if (mapName.StartsWith("factory4"))

WaypointsPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace DrakiaXYZ.Waypoints
1616
{
17-
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.8.0")]
17+
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.8.1")]
1818
[BepInDependency("com.SPT.core", "4.0.0")]
1919
public class WaypointsPlugin : BaseUnityPlugin
2020
{

0 commit comments

Comments
 (0)