From 1e62d6741866accfd8f4b730388e637232e5ed4c Mon Sep 17 00:00:00 2001 From: kmyuhkyuk <72241714+kmyuhkyuk@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:08:04 +0800 Subject: [PATCH] Adjust NetID setting max value limit Now server send new NetID will increment from 1000 --- SlayTheSpire2.LAN.Multiplayer/Patchs/ENetHostPatch.cs | 2 +- SlayTheSpire2.LAN.Multiplayer/Patchs/NSettingsScreenPatch.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 => {