diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-01-15 00:19:33 +0200 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-01-15 00:19:33 +0200 |
commit | 252dedff670a8a456ae557b8ac7f1727bb7fd1b1 (patch) | |
tree | 996f83583518b3774155f9454cea901af8bae534 /src/main/java/rosegoldaddons/utils/ChatUtils.java | |
parent | 0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693 (diff) | |
download | RGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.tar.gz RGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.tar.bz2 RGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.zip |
2.5.2-pre1
Diffstat (limited to 'src/main/java/rosegoldaddons/utils/ChatUtils.java')
-rw-r--r-- | src/main/java/rosegoldaddons/utils/ChatUtils.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/rosegoldaddons/utils/ChatUtils.java b/src/main/java/rosegoldaddons/utils/ChatUtils.java index 4295c77..43107eb 100644 --- a/src/main/java/rosegoldaddons/utils/ChatUtils.java +++ b/src/main/java/rosegoldaddons/utils/ChatUtils.java @@ -18,7 +18,9 @@ public class ChatUtils { /* § */ public static void sendMessage(String message) { - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§f[§aRoseGoldAddons§f] "+message)); + if (Minecraft.getMinecraft().thePlayer != null) { + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§f[§aRoseGoldAddons§f] " + message)); + } } public static ChatStyle createClickStyle(ClickEvent.Action action, String value) { |