mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-18 16:17:45 +01:00
Check if item is null in 1.17.1->1.17 book conversion (#826)
This commit is contained in:
parent
94c755166c
commit
b5319dbb32
@ -102,6 +102,12 @@ public final class Protocol1_17_1To1_17 extends BackwardsProtocol<ClientboundPac
|
||||
boolean signing = wrapper.read(Types.BOOLEAN);
|
||||
wrapper.passthrough(Types.VAR_INT); // Slot comes first
|
||||
|
||||
if (item == null) {
|
||||
wrapper.write(Types.VAR_INT, 0); // Pages length
|
||||
wrapper.write(Types.BOOLEAN, false); // Optional title
|
||||
return;
|
||||
}
|
||||
|
||||
CompoundTag tag = item.tag();
|
||||
ListTag<StringTag> pagesTag;
|
||||
StringTag titleTag = null;
|
||||
|
Loading…
Reference in New Issue
Block a user