mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Repositioned back button for guide search
This commit is contained in:
parent
f71b925a41
commit
06e3125a6d
@ -817,7 +817,7 @@ public final class SlimefunGuide {
|
||||
"&rShift + left Click: &7Go back to Main Menu")
|
||||
);
|
||||
|
||||
menu.addMenuClickHandler(0, (pl, s, is, action) -> {
|
||||
menu.addMenuClickHandler(slot, (pl, s, is, action) -> {
|
||||
if (action.isShiftClicked()) openMainMenuAsync(pl, true, false, 1);
|
||||
else {
|
||||
Object last = getLastEntry(profile, true);
|
||||
@ -828,7 +828,7 @@ public final class SlimefunGuide {
|
||||
|
||||
}
|
||||
else {
|
||||
menu.addItem(0, new CustomItem(new ItemStack(Material.ENCHANTED_BOOK), "&7\u21E6 Back", "", "&rLeft Click: &7Go back to Main Menu"));
|
||||
menu.addItem(slot, new CustomItem(new ItemStack(Material.ENCHANTED_BOOK), "&7\u21E6 Back", "", "&rLeft Click: &7Go back to Main Menu"));
|
||||
menu.addMenuClickHandler(0, (pl, s, is, action) -> {
|
||||
openMainMenuAsync(pl, true, book, 1);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user