From bb154baed94c9b0765b5715e10a6f123ab07b07c Mon Sep 17 00:00:00 2001 From: Wolfieheart Date: Fri, 20 Dec 2024 17:06:55 +0100 Subject: [PATCH] [CORE] Make Equipment Menu aligned with all the other menus Signed-off-by: Wolfieheart --- .../java/io/github/rypofalem/armorstandeditor/PlayerEditor.java | 2 +- .../github/rypofalem/armorstandeditor/menu/EquipmentMenu.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/rypofalem/armorstandeditor/PlayerEditor.java b/src/main/java/io/github/rypofalem/armorstandeditor/PlayerEditor.java index 593b98a4..ed53a791 100644 --- a/src/main/java/io/github/rypofalem/armorstandeditor/PlayerEditor.java +++ b/src/main/java/io/github/rypofalem/armorstandeditor/PlayerEditor.java @@ -218,7 +218,7 @@ private void openEquipment(ArmorStand armorStand) { if (!getPlayer().hasPermission("asedit.equipment")) return; //if (team != null && team.hasEntry(armorStand.getName())) return; //Do not allow editing if the ArmorStand is Disabled equipMenu = new EquipmentMenu(this, armorStand); - equipMenu.open(); + equipMenu.openMenu(); } private void choosePreset(ArmorStand armorStand) { diff --git a/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java b/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java index ab17a75a..ce804e17 100644 --- a/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java +++ b/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java @@ -90,7 +90,7 @@ private ItemStack createIcon(Material mat, String slot) { return icon; } - public void open() { + public void openMenu() { pe.getPlayer().closeInventory(); if (pe.getPlayer().hasPermission("asedit.equipment")) { fillInventory();