Changes to sending client message

This commit is contained in:
Kino 2017-07-14 21:30:28 -04:00
parent 112b71a27e
commit 22c5853038

View file

@ -47,7 +47,10 @@ public class ClientProxy extends ServerProxy
@Override @Override
public void sendMessage(EntityPlayer player, String message) public void sendMessage(EntityPlayer player, String message)
{ {
player.addChatMessage(new TextComponentString(message)); if (this.getThePlayer() == player)
{
Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString(message));
}
} }
@Override @Override