Merge pull request #29 from Qowyn/fixes

Make Mantle only send non-empty messages, instead of only empty messages.
This commit is contained in:
Zach committed 2014-10-02 05:57:44 -04:00
commit 8a7539803f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ public class DebugHelper
private static void handleConsoleDebug (DebugData data)
{
String player = data.player.getDisplayName();//.username;
String player = data.player.getGameProfile().getName();
String prefix = "[" + player + ":" + data.cl.getSimpleName() + "] ";
for (String str : data.strings)
{
+1 -1
View File
@@ -16,7 +16,7 @@ public class PlayerUtils
*/
public static void sendChatMessage (EntityPlayer p, String message)
{
if (p != null && message != null && message.isEmpty())
if (p != null && message != null && !message.isEmpty())
p.addChatComponentMessage(new ChatComponentText(message));
}