mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-22 22:45:04 +01:00
Fix ghost items when taking items out of a furnace
This commit is contained in:
parent
0067ba5bb9
commit
f78d2d3d2a
1 changed files with 2 additions and 1 deletions
|
@ -152,6 +152,7 @@ public final class ClickPlan {
|
||||||
clickedItemStack,
|
clickedItemStack,
|
||||||
changedItems
|
changedItems
|
||||||
);
|
);
|
||||||
|
System.out.println(clickPacket);
|
||||||
|
|
||||||
session.sendDownstreamPacket(clickPacket);
|
session.sendDownstreamPacket(clickPacket);
|
||||||
}
|
}
|
||||||
|
@ -391,7 +392,7 @@ public final class ClickPlan {
|
||||||
public IntSet getAffectedSlots() {
|
public IntSet getAffectedSlots() {
|
||||||
IntSet affectedSlots = new IntOpenHashSet();
|
IntSet affectedSlots = new IntOpenHashSet();
|
||||||
for (ClickAction action : plan) {
|
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);
|
affectedSlots.add(action.slot);
|
||||||
if (action.click.actionType == ContainerActionType.MOVE_TO_HOTBAR_SLOT) {
|
if (action.click.actionType == ContainerActionType.MOVE_TO_HOTBAR_SLOT) {
|
||||||
//TODO won't work if offhand is added
|
//TODO won't work if offhand is added
|
||||||
|
|
Loading…
Reference in a new issue