mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-14 01:04:06 +00:00
Merge pull request #29 from Qowyn/fixes
Make Mantle only send non-empty messages, instead of only empty messages.
This commit is contained in:
commit
8a7539803f
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user