Skip to content

Commit 12366af

Browse files
Fix StonecutterWindow output ghost item on input update
1 parent 4e8d1a2 commit 12366af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

invui/src/main/java/xyz/xenondevs/invui/internal/menu/CustomStonecutterMenu.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ public void handleClosed() {
6767
@Override
6868
public void setItem(int slot, org.bukkit.inventory.@Nullable ItemStack item) {
6969
super.setItem(slot, item);
70-
if (slot == 0)
70+
if (slot == 0) {
7171
updateButtons(buttons);
72+
// client-side prediction clears output slot when input slot is modified
73+
remoteItems.set(1, HashedStack.EMPTY);
74+
}
7275
}
7376

7477
/**

0 commit comments

Comments
 (0)