diff --git a/SlayTheSpire2.LAN.Multiplayer/Patchs/ENetHostPatch.cs b/SlayTheSpire2.LAN.Multiplayer/Patchs/ENetHostPatch.cs index fdd093a..cf8254e 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Patchs/ENetHostPatch.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Patchs/ENetHostPatch.cs @@ -64,7 +64,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Patchs if (connectedPeerIdHashSet.Contains(handshakeNetId)) { - var newNetId = handshakeNetId; + var newNetId = 1000u; while (connectedPeerIdHashSet.Contains(newNetId)) { diff --git a/SlayTheSpire2.LAN.Multiplayer/Patchs/NSettingsScreenPatch.cs b/SlayTheSpire2.LAN.Multiplayer/Patchs/NSettingsScreenPatch.cs index 56d309e..b0d5f64 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Patchs/NSettingsScreenPatch.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Patchs/NSettingsScreenPatch.cs @@ -128,7 +128,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Patchs netIdInput.Step = 1; netIdInput.MinValue = 2; - netIdInput.MaxValue = double.MaxValue; + netIdInput.MaxValue = ulong.MaxValue; netIdInput.Value = SettingsHelper.Instance.SettingsModel.NetId; netIdInput.ValueChanged += value => {