diff --git a/Plugins/Mineplex.Core/src/mineplex/core/preferences/ui/PreferenceMainMenu.java b/Plugins/Mineplex.Core/src/mineplex/core/preferences/ui/PreferenceMainMenu.java index bb3bedc20..cbe2b23b1 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/preferences/ui/PreferenceMainMenu.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/preferences/ui/PreferenceMainMenu.java @@ -2,6 +2,7 @@ package mineplex.core.preferences.ui; import com.google.common.collect.Lists; import mineplex.core.common.Rank; +import mineplex.core.common.util.UtilUI; import mineplex.core.menu.Button; import mineplex.core.menu.Menu; import mineplex.core.preferences.PreferenceCategory; @@ -44,14 +45,13 @@ public class PreferenceMainMenu extends Menu List list = Lists.newArrayList(PreferenceCategory.values()); - int[] slots = SLOTS_MAX; - if(!exclusive) { list.remove(PreferenceCategory.EXCLUSIVE); - slots = SLOTS_MIN; } + int[] slots = UtilUI.getIndicesFor(list.size(), 1, 4, 1); + int size = list.size(); for(int i = 0; i < size; i++)