Skip to content

Commit

Permalink
less spots
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Aug 1, 2024
1 parent be3c95d commit 3f19f8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
.slot(SyncHandlers.itemSlot(handler, index)
.slotGroup("item_inv")
.changeListener((newItem, onlyAmountChanged, client, init) -> {
if (onlyAmountChanged && handler instanceof NotifiableItemStackHandler notif) {
if (onlyAmountChanged &&
handler instanceof NotifiableItemStackHandler notif) {
notif.onContentsChanged(index);
}
})
Expand Down

0 comments on commit 3f19f8a

Please sign in to comment.