From ba792c492ec06eb777438b4c99088fb560d56b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Pivo=C5=88ka?= Date: Mon, 9 Dec 2024 23:03:43 +0100 Subject: [PATCH] Add else --- Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs b/Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs index a829e8dc9..445a21e27 100644 --- a/Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs +++ b/Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs @@ -1780,13 +1780,11 @@ public override void Write(CGameCtnChallenge n, GbxWriter w) { ident = ident with { Id = fullName.Substring(itemsPrefix.Length) }; } - - if (fullName.StartsWith(blocksPrefix)) + else if (fullName.StartsWith(blocksPrefix)) { ident = ident with { Id = fullName.Substring(blocksPrefix.Length) }; } - - if (fullName.StartsWith(clubItemsPrefix)) + else if (fullName.StartsWith(clubItemsPrefix)) { ident = ident with {