Fix map not being properly reset when next map voted is the same as current one for games

This commit is contained in:
UnknownShadow200 2019-06-27 17:41:09 +10:00
parent 3958ecfd90
commit 8b88fe0f85

View File

@ -155,7 +155,10 @@ namespace MCGalaxy.Games {
string map = Picker.ChooseNextLevel(this);
if (!Running) return;
if (map == null) { ContinueOnSameMap(); return; }
if (map == null || map.CaselessEq(Map.MapName)) {
ContinueOnSameMap(); return;
}
Map.Message("The next map has been chosen - &c" + map);
Map.Message("Please wait while you are transfered.");