Skip to content

Commit 1c339e8

Browse files
committed
Null check input serializer version
Fixes ViaVersion/ViaBackwards#896
1 parent 1a9cda0 commit 1c339e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/com/viaversion/viaversion/rewriter/ComponentRewriter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ protected void handleHoverEvent(final UserConnection connection, final CompoundT
360360
handleShowItem(connection, contentsTag, componentsTag);
361361
if (componentsTag != null) {
362362
handleContainerContents(connection, componentsTag);
363-
handleWrittenBookContents(connection, componentsTag);
363+
if (inputSerializerVersion() != null) {
364+
handleWrittenBookContents(connection, componentsTag);
365+
}
364366

365367
handleItemArrayContents(connection, componentsTag, "bundle_contents");
366368
handleItemArrayContents(connection, componentsTag, "charged_projectiles");

0 commit comments

Comments
 (0)