3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

"fix" trade list

Dieser Commit ist enthalten in:
Gerrygames 2019-03-13 18:07:09 +01:00
Ursprung f9d957a827
Commit f8df3239d5

Datei anzeigen

@ -169,7 +169,14 @@ public class InventoryPackets {
wrapper.passthrough(Type.BOOLEAN); // Trade disabled
wrapper.passthrough(Type.INT); // Number of tools uses
wrapper.passthrough(Type.INT); // Maximum number of trade uses
wrapper.write(Type.INT, 0);
wrapper.write(Type.INT, 0);
wrapper.write(Type.FLOAT, 0f);
}
wrapper.write(Type.VAR_INT, 0);
wrapper.write(Type.VAR_INT, 0);
wrapper.write(Type.BOOLEAN, false);
} else if (channel.equals("minecraft:book_open") || channel.equals("book_open")) {
wrapper.read(Type.REMAINING_BYTES);
int hand = wrapper.read(Type.VAR_INT);