mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-10-02 23:57:32 +02:00
Fixed issue w buttons not working & glassless from working in kits gui.
This commit is contained in:
parent
2ba49cc2b0
commit
2ac6b8e2d6
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateKits"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.7"
|
||||
version: "2.3.8"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user