Fix server host being prompted twice with the C# popup

This commit is contained in:
Evil Factory
2026-04-10 23:49:16 -03:00
parent ac6147e4a0
commit 775ae0ef91
@@ -160,7 +160,7 @@ namespace Barotrauma
case SubEditorScreen: case SubEditorScreen:
case TestScreen: // notes: TestScreen is a Linux edge case editor screen and is deprecated. 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 => PromptCSharpMods(selection =>
{ {