Skip to content

Commit 01d26e7

Browse files
committed
Make trimStrings public
1 parent 99ea6c3 commit 01d26e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/src/main/java/com/viaversion/viaversion/protocol/packet/PacketWrapperImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ private InformativeException createInformativeException(final Exception cause, f
266266
final ProtocolInfo protocolInfo = this.user().getProtocolInfo();
267267
return new InformativeException(cause)
268268
.set("Packet Type", this.packetType)
269-
.set("Index", index)
270-
.set("Type", type.getTypeName())
271269
.set("Client Protocol", protocolInfo.protocolVersion().getName())
272270
.set("Server Protocol", protocolInfo.serverProtocolVersion().getName())
271+
.set("Index", index)
272+
.set("Type", type.getTypeName())
273273
.set("Data", this.packetValues)
274274
.set("Packet ID", this.id);
275275
}

common/src/main/java/com/viaversion/viaversion/util/ComponentUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static JsonObject plainToJson(final String message) {
8787
}
8888
}
8989

90-
private static Tag trimStrings(final Tag input) {
90+
public static Tag trimStrings(final Tag input) {
9191
// Dirty fix for https://github.com/ViaVersion/ViaVersion/issues/3650
9292
// Usually tripped by hover event data being too long, e.g. book or shulker box contents, which have to be held in full as SNBT
9393
if (input == null) {

0 commit comments

Comments
 (0)