diff options
Diffstat (limited to 'src/main/java/rosegoldaddons/utils')
-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) { |