mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Fix duplicate entries by building entries once on first open
This commit is contained in:
1 parent
edadd4f350
commit
b6bddbd0df
1 file changed
+5
-1
@@ -202,6 +202,11 @@ public static class RoleGuidePatches
|
||||
Initialize(__instance);
|
||||
}
|
||||
|
||||
if (RoleEntries.Count == 0)
|
||||
{
|
||||
BuildEntries();
|
||||
}
|
||||
|
||||
if (__instance.NormalModeSettings.Count == 0)
|
||||
{
|
||||
__instance.CreateSettingsEntry(
|
||||
@@ -523,7 +528,6 @@ public static class RoleGuidePatches
|
||||
settingButton.transform.localPosition = new Vector3(-3.6f, 0.056f, -0.2f);
|
||||
rolesButton.transform.localPosition = new Vector3(-3.6f, -0.544f, -0.2f);
|
||||
modifiersButton.transform.localPosition = new Vector3(-3.6f, -1.144f, -0.2f);
|
||||
BuildEntries();
|
||||
_uiInitialized = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user