Skip to content

Commit

Permalink
Fix for 2024.1.19.687
Browse files Browse the repository at this point in the history
  • Loading branch information
bontebok committed Jan 20, 2024
1 parent dba1fdd commit 667690c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ResoniteIPv6Mod/ResoniteIPv6Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static bool PunchthroughConnect(LNL_Connection __instance, Action<LocaleS
}
else
{
foreach (NetworkNodeInfo node in cloud.NetworkNodes.GetNodes(NetworkNodeType.LNL_NAT))
foreach (NetworkNodeInfo node in cloud.NetworkNodes.GetNodes(NetworkNodeType.LNL_NAT, 0))
nodes.Add(node);
}

Expand Down Expand Up @@ -242,7 +242,8 @@ public static bool PunchthroughConnect(LNL_Connection __instance, Action<LocaleS
{
statusCallback("World.Connection.LNL.Relay".AsLocaleKey(null, true, null));
Msg("IPv4 Punchthrough failed, Connecting to Relay");
AccessTools.MethodDelegate<Action>(ConnectToRelay, __instance).Invoke();
//AccessTools.MethodDelegate<Action>(ConnectToRelay, __instance).Invoke();
ConnectToRelay.Invoke(__instance, new object[]{});
}
else
{
Expand Down

0 comments on commit 667690c

Please sign in to comment.