mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 12:29:16 +00:00
fix: multi-slot gui items actions not running
This commit is contained in:
@@ -144,10 +144,8 @@ public class Menu {
|
||||
}
|
||||
|
||||
for (int slot : slots) {
|
||||
ItemStack originalItem = item.clone();
|
||||
item = updateItem(user, item, type, config, slot);
|
||||
|
||||
GuiItem guiItem = ItemBuilder.from(item).asGuiItem();
|
||||
ItemStack originalItem = updateItem(user, item, type, config, slot).clone();
|
||||
GuiItem guiItem = ItemBuilder.from(originalItem).asGuiItem();
|
||||
|
||||
Type finalType = type;
|
||||
guiItem.setAction(event -> {
|
||||
|
||||
Reference in New Issue
Block a user