Skip to content

Commit ee7f916

Browse files
committed
Fix disconnection message in Ore UI
1 parent 00c62d9 commit ee7f916

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/itxtech/nemisys/network/protocol/mcpe/DisconnectPacket.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.itxtech.nemisys.network.protocol.mcpe;
22

33
import lombok.ToString;
4+
import org.itxtech.nemisys.utils.TextFormat;
45

56
/**
67
* Created by on 15-10-12.
@@ -192,9 +193,9 @@ public void encode(int protocol, boolean netease) {
192193
this.putBoolean(this.hideDisconnectionScreen);
193194
}
194195
if (!this.hideDisconnectionScreen) {
195-
this.putString(this.message);
196+
this.putString(!netease && protocol >= 823 ? TextFormat.clean(this.message) : this.message);
196197
if (protocol >= 705) {
197-
this.putString(this.filteredMessage);
198+
this.putString(!netease && protocol >= 823 ? TextFormat.clean(this.filteredMessage) : this.filteredMessage);
198199
}
199200
}
200201
}

0 commit comments

Comments
 (0)