Skip to content

Commit

Permalink
fix: removed old m_firstSpawn = false, no longer available in Valheim…
Browse files Browse the repository at this point in the history
…. Affected debug builds only
  • Loading branch information
MSchmoecker committed Sep 21, 2024
1 parent c7ccee8 commit b24d5b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions JotunnLib/DebugUtils/DebugHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ private static class Patches
[HarmonyPatch(typeof(ZoneSystem), nameof(ZoneSystem.SpawnLocation)), HarmonyPrefix]
private static void ZoneSystem_SpawnLocation(ZoneSystem.ZoneLocation location, ZoneSystem.SpawnMode mode) => instance.ZoneSystem_SpawnLocation(location, mode);

[HarmonyPatch(typeof(Player), nameof(Player.OnSpawned)), HarmonyPrefix]
private static void Player_OnSpawned_Prefix(Player __instance) => __instance.m_firstSpawn = false;

[HarmonyPatch(typeof(Player), nameof(Player.OnSpawned)), HarmonyPostfix]
private static void Player_OnSpawned_Postfix() => instance.Player_OnSpawned_Postfix();
}
Expand Down

0 comments on commit b24d5b8

Please sign in to comment.