mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Fixed button that shouldnt be enabled.
This commit is contained in:
parent
c89bb9ad98
commit
d2ac2ea5da
@ -149,6 +149,13 @@ public class GUIDisplayKit extends AbstractGUI {
|
||||
linkmeta.setLore(lore);
|
||||
link.setItemMeta(linkmeta);
|
||||
inventory.setItem(max - 5, link);
|
||||
|
||||
registerClickable(max - 5, ((player1, inventory1, cursor, slot, type) -> {
|
||||
player.closeInventory();
|
||||
String kitName = kit.getName();
|
||||
Kit kit = plugin.getKitManager().getKit(kitName);
|
||||
kit.buy(player);
|
||||
}));
|
||||
}
|
||||
|
||||
for (ItemStack is : list) {
|
||||
@ -218,13 +225,6 @@ public class GUIDisplayKit extends AbstractGUI {
|
||||
|
||||
registerClickable(8, (player, inventory, cursor, slot, type) -> player.closeInventory());
|
||||
|
||||
registerClickable(max - 5, ((player1, inventory1, cursor, slot, type) -> {
|
||||
player.closeInventory();
|
||||
String kitName = kit.getName();
|
||||
Kit kit = plugin.getKitManager().getKit(kitName);
|
||||
kit.buy(player);
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user