From f78d2d3d2a691dc5f4cbfbf05e75e017c379475f Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Tue, 29 Mar 2022 14:36:58 -0400 Subject: [PATCH] Fix ghost items when taking items out of a furnace --- .../java/org/geysermc/geyser/inventory/click/ClickPlan.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java b/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java index b0cca53d9..575294a5b 100644 --- a/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java +++ b/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java @@ -152,6 +152,7 @@ public final class ClickPlan { clickedItemStack, changedItems ); + System.out.println(clickPacket); session.sendDownstreamPacket(clickPacket); } @@ -391,7 +392,7 @@ public final class ClickPlan { public IntSet getAffectedSlots() { IntSet affectedSlots = new IntOpenHashSet(); for (ClickAction action : plan) { - if (translator.getSlotType(action.slot) == SlotType.NORMAL && action.slot != Click.OUTSIDE_SLOT) { + if (translator.getSlotType(action.slot) != SlotType.OUTPUT && action.slot != Click.OUTSIDE_SLOT) { affectedSlots.add(action.slot); if (action.click.actionType == ContainerActionType.MOVE_TO_HOTBAR_SLOT) { //TODO won't work if offhand is added