Null check input serializer version

Fixes ViaVersion/ViaBackwards#896
This commit is contained in:
Nassim Jahnke 2024-10-11 19:37:35 +02:00
parent 1a9cda0579
commit 1c339e8b54
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -360,7 +360,9 @@ public class ComponentRewriter<C extends ClientboundPacketType> implements com.v
handleShowItem(connection, contentsTag, componentsTag);
if (componentsTag != null) {
handleContainerContents(connection, componentsTag);
handleWrittenBookContents(connection, componentsTag);
if (inputSerializerVersion() != null) {
handleWrittenBookContents(connection, componentsTag);
}
handleItemArrayContents(connection, componentsTag, "bundle_contents");
handleItemArrayContents(connection, componentsTag, "charged_projectiles");