Fix writable book id

This commit is contained in:
KennyTV 2021-06-18 16:39:56 +02:00
parent d32a4541a9
commit 6a66d7653f
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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);