From 775ae0ef91a8e7dae138586d1ae936cd99f84e76 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Fri, 10 Apr 2026 23:49:16 -0300 Subject: [PATCH] Fix server host being prompted twice with the C# popup --- Barotrauma/BarotraumaClient/ClientSource/LuaCs/LuaCsSetup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/ClientSource/LuaCs/LuaCsSetup.cs b/Barotrauma/BarotraumaClient/ClientSource/LuaCs/LuaCsSetup.cs index 476aeede7..672dc2f7a 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/LuaCs/LuaCsSetup.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/LuaCs/LuaCsSetup.cs @@ -160,7 +160,7 @@ namespace Barotrauma case SubEditorScreen: case TestScreen: // notes: TestScreen is a Linux edge case editor screen and is deprecated. - if (screen is NetLobbyScreen && CurrentRunState != RunState.Running) + if (screen is NetLobbyScreen && CurrentRunState != RunState.Running && GameMain.Client?.ClientPeer is not P2POwnerPeer) { PromptCSharpMods(selection => {