9
0
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:
LoJoSho
2023-05-05 16:23:03 -05:00
parent 91361a6373
commit 0e9164a506

View File

@@ -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 -> {