2013-07-24 09:29:30 +00:00
|
|
|
From 3e0dc0666236d41516e37c2f14d9a8dcc2e6f2e1 Mon Sep 17 00:00:00 2001
|
2013-07-10 13:46:31 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Wed, 10 Jul 2013 23:46:09 +1000
|
|
|
|
Subject: [PATCH] Client Crash Cannot Send Message
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2013-07-24 09:29:30 +00:00
|
|
|
index 0dddd1e..0c0b1b3 100644
|
2013-07-10 13:46:31 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2013-07-24 09:29:30 +00:00
|
|
|
@@ -830,7 +830,7 @@ public class PlayerConnection extends Connection {
|
2013-07-10 13:46:31 +00:00
|
|
|
|
|
|
|
// CraftBukkit start
|
|
|
|
if (this.player.getChatFlags() == 1 && !s.startsWith("/")) {
|
|
|
|
- this.sendPacket(new Packet3Chat("Cannot send chat message."));
|
|
|
|
+ this.player.sendMessage(ChatMessage.d("Cannot send chat message.")); // Spigot - fix client crash
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|