mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-11 04:21:16 +01:00
parent
27a17ff183
commit
85a5762364
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ public class BedrockTextTranslator extends PacketTranslator<TextPacket> {
|
|||
public void translate(GeyserSession session, TextPacket packet) {
|
||||
String message = packet.getMessage();
|
||||
|
||||
if (message.isBlank()) {
|
||||
// Java Edition (as of 1.17.1) just doesn't pass on these messages, so... we won't either!
|
||||
return;
|
||||
}
|
||||
|
||||
if (MessageTranslator.isTooLong(message, session)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue