Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
Fix ghost items when taking items out of a furnace
Dieser Commit ist enthalten in:
Ursprung
0067ba5bb9
Commit
f78d2d3d2a
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren