Fixed issue w buttons not working & glassless from working in kits gui.

This commit is contained in:
Brianna 2019-06-07 14:18:28 -04:00
parent 2ba49cc2b0
commit 2ac6b8e2d6
2 changed files with 10 additions and 9 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateKits"
path: "/builds/$CI_PROJECT_PATH"
version: "2.3.7"
version: "2.3.8"
build:
stage: build

View File

@ -49,14 +49,14 @@ public class GUIKitSelector extends AbstractGUI {
max = 36;
}
if (glassless) {
if (kitList.size() > n + 34)
max = max + 34;
else if (kitList.size() > n + 23)
max = max + 25;
else if (kitList.size() > n + 14)
max = max + 16;
else if (kitList.size() > n + 7)
max = max + 7;
if (kitList.size() > n + 36)
max = max + 36;
else if (kitList.size() > n + 27)
max = max + 27;
else if (kitList.size() > n + 18)
max = max + 18;
else if (kitList.size() > n + 9)
max = max + 9;
}
if (glassless) max -= 18;
@ -90,6 +90,7 @@ public class GUIKitSelector extends AbstractGUI {
@Override
protected void constructGUI() {
resetClickables();
registerClickables();
ItemStack exit = new ItemStack(Material.valueOf(plugin.getConfig().getString("Interfaces.Exit Icon")), 1);
ItemMeta exitmeta = exit.getItemMeta();