From cb2ff3c8bbc064f3c6a5a71242c20b845733d4e7 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sat, 26 Feb 2011 19:37:19 +0000 Subject: [PATCH] Implemented chat recipients --- src/main/java/net/minecraft/server/NetServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 033966bd75..0857abc338 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -623,8 +623,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener { msg = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()); a.info(msg); - for (final String line: TextWrapper.wrapText(msg)) { - this.d.f.a((Packet) (new Packet3Chat(line))); + for (Player recipient : event.getRecipients()) { + recipient.sendMessage(msg); } // CraftBukkit end }