3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 13:52:50 +02:00

Fix writable book id

Dieser Commit ist enthalten in:
KennyTV 2021-06-18 16:39:56 +02:00
Ursprung d32a4541a9
Commit 6a66d7653f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -75,7 +75,7 @@ public class Protocol1_17_1To1_17 extends AbstractProtocol<ClientboundPackets1_1
public void registerMap() {
handler(wrapper -> {
CompoundTag tag = new CompoundTag();
Item item = new DataItem(825, (byte) 1, (short) 0, tag); // Magic value for writable books
Item item = new DataItem(942, (byte) 1, (short) 0, tag); // Magic value for writable books
// Write the item, edit the tag down the line
wrapper.write(Type.FLAT_VAR_INT_ITEM, item);