mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
reverse mod assignment order
This commit is contained in:
1 parent
570bb388b6
commit
23e11fef93
1 file changed
+2
-1
@@ -65,8 +65,9 @@ public static class ModifierManager
|
||||
var rand = new Random();
|
||||
|
||||
List<uint> filteredModifiers = [];
|
||||
var modifiers = IdToTypeModifierMap.Where(pair => pair.Value.IsAssignableTo(typeof(GameModifier))).Reverse(); // For some reason the modifiers are sorted in reverse by namespace, but alphabetical by class name lol
|
||||
|
||||
foreach (var modifier in IdToTypeModifierMap.Where(pair => pair.Value.IsAssignableTo(typeof(GameModifier))))
|
||||
foreach (var modifier in modifiers)
|
||||
{
|
||||
if (Activator.CreateInstance(modifier.Value) is not GameModifier mod)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user