Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
Check if item is null in 1.17.1->1.17 book conversion (#826)
Dieser Commit ist enthalten in:
Ursprung
94c755166c
Commit
b5319dbb32
@ -102,6 +102,12 @@ public final class Protocol1_17_1To1_17 extends BackwardsProtocol<ClientboundPac
|
|||||||
boolean signing = wrapper.read(Types.BOOLEAN);
|
boolean signing = wrapper.read(Types.BOOLEAN);
|
||||||
wrapper.passthrough(Types.VAR_INT); // Slot comes first
|
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();
|
CompoundTag tag = item.tag();
|
||||||
ListTag<StringTag> pagesTag;
|
ListTag<StringTag> pagesTag;
|
||||||
StringTag titleTag = null;
|
StringTag titleTag = null;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren