mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
Removed pointless disconnecting of player for spamming chat. It now just ignores the message.
This commit is contained in:
parent
38cc620c56
commit
0a92efc01e
@ -579,9 +579,8 @@ public final class Player extends Mob {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addMessageToChatQueue(byte[] messageData) {
|
public void addMessageToChatQueue(byte[] messageData) {
|
||||||
|
if (chatQueue.size() <= 2) {
|
||||||
chatQueue.add(new ChatMessage(this, messageData));
|
chatQueue.add(new ChatMessage(this, messageData));
|
||||||
if (chatQueue.size() > 2) {
|
|
||||||
destroy(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user