From 03ce8e967d53a1c3e99e5c076578f0088c8d3da6 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 9 Jul 2018 10:31:12 +1000 Subject: [PATCH] Fixed removing map in games GUI not resetting map settings groupbox --- GUI/PropertyWindow/GamesHelper.cs | 2 ++ MCGalaxy/Games/TntWars/TWGame.Round.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/GUI/PropertyWindow/GamesHelper.cs b/GUI/PropertyWindow/GamesHelper.cs index 262b6128b..b567afea0 100644 --- a/GUI/PropertyWindow/GamesHelper.cs +++ b/GUI/PropertyWindow/GamesHelper.cs @@ -120,6 +120,7 @@ namespace MCGalaxy.Gui { } public void UpdateUsedMaps() { + lbUsed.SelectedIndex = -1; object selected = lbUsed.SelectedItem; lbUsed.Items.Clear(); @@ -132,6 +133,7 @@ namespace MCGalaxy.Gui { } public void UpdateNotUsedMaps(string[] allMaps) { + lbNotUsed.SelectedIndex = -1; object selected = lbNotUsed.SelectedItem; lbNotUsed.Items.Clear(); diff --git a/MCGalaxy/Games/TntWars/TWGame.Round.cs b/MCGalaxy/Games/TntWars/TWGame.Round.cs index ee40c4720..bb550a486 100644 --- a/MCGalaxy/Games/TntWars/TWGame.Round.cs +++ b/MCGalaxy/Games/TntWars/TWGame.Round.cs @@ -115,7 +115,7 @@ namespace MCGalaxy.Games { if (Get(p).Score >= cfg.ScoreRequired) won = true; } } - Thread.Sleep(1000); + Thread.Sleep(250); } }