Skip to content

Commit 1ba46d7

Browse files
authored
Fix: Map List's sorting resetting (#117)
* Fix: Map List's sorting resetting Uh yeah i hope this is fine LOL * Update sorting error solution The game was bugging out, thought the optimal solution borked things, seems to be working fine now so im updating it * revert changes
1 parent 807e7b5 commit 1ba46d7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/ui/menu/play/MapList.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ public override void _Ready()
134134
}
135135
};
136136
MapManager.MapsInitialized += _ => UpdateMaps();
137-
MapManager.MapUpdated += map =>
138-
{
139-
UpdateMaps();
140-
};
137+
138+
MapManager.MapUpdated += map => UpdateMaps();
139+
141140
MapManager.MapDeleted += map =>
142141
{
143142
if (selectedMapID == map.Name)
@@ -475,6 +474,7 @@ public void UpdateMaps()
475474
Maps.Add(map);
476475
}
477476

477+
Sort();
478478
clear();
479479
}
480480

0 commit comments

Comments
 (0)