3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00
Dieser Commit ist enthalten in:
Gero 2021-10-01 15:26:26 +02:00 committet von Nassim Jahnke
Ursprung 39f7f70a32
Commit 02122f8ce6

Datei anzeigen

@ -77,8 +77,9 @@ public final class InventoryPackets extends ItemRewriter<Protocol1_17To1_16_4> {
// 1.17 clients send the then carried item, but 1.16 expects the clicked one // 1.17 clients send the then carried item, but 1.16 expects the clicked one
Item item = wrapper.read(Type.FLAT_VAR_INT_ITEM); Item item = wrapper.read(Type.FLAT_VAR_INT_ITEM);
int action = wrapper.get(Type.VAR_INT, 0); int action = wrapper.get(Type.VAR_INT, 0);
if (action == 5) { if (action == 5 || action == 1) {
// Quick craft (= dragging / mouse movement while clicking on an empty slot) // Quick craft (= dragging / mouse movement while clicking on an empty slot)
// OR Quick move (= shift click to move a whole stack to the other inventory)
// The server always expects an empty item here // The server always expects an empty item here
item = null; item = null;
} else { } else {