Skip to content

Commit fa5ad77

Browse files
committed
Missed one log
1 parent a7fb087 commit fa5ad77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v898/serializer/TextSerializer_v898.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ public void serialize(ByteBuf buffer, BedrockCodecHelper helper, TextPacket pack
3838
helper.writeString(buffer, "textObject");
3939
buffer.writeByte(type.ordinal());
4040
text = converter.serialize(message);
41-
if (text.isEmpty()) text = " ";
41+
if (text.isEmpty()) {
42+
text = " ";
43+
if (log.isDebugEnabled()) {
44+
log.debug("TextPacket of " + type + " with empty message");
45+
}
46+
}
4247
helper.writeString(buffer, text);
4348
break;
4449
case JSON:

0 commit comments

Comments
 (0)