diff options
author | Florian Rinke <develop@torui.de> | 2021-11-05 21:23:36 +0100 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-11-05 21:23:36 +0100 |
commit | e45c77e7bae2bc6250b31d1d8e01bab75d7966ed (patch) | |
tree | 4858b92ccfcf27f97797777d879ba891e5519ffe /src/main/java/de/torui/coflsky/CoflSkyCommand.java | |
parent | 5cc73b705cf4c6d6887e650daf8222b63dedc011 (diff) | |
download | COFL-e45c77e7bae2bc6250b31d1d8e01bab75d7966ed.tar.gz COFL-e45c77e7bae2bc6250b31d1d8e01bab75d7966ed.tar.bz2 COFL-e45c77e7bae2bc6250b31d1d8e01bab75d7966ed.zip |
Handle Fail more graceful
Diffstat (limited to 'src/main/java/de/torui/coflsky/CoflSkyCommand.java')
-rw-r--r-- | src/main/java/de/torui/coflsky/CoflSkyCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java index e48d131..6f182af 100644 --- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java +++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java @@ -106,8 +106,8 @@ public class CoflSkyCommand extends CommandBase { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Stopping Connection to CoflNet")); CoflSessionManager.DeleteAllCoflSessions(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Deleting CoflNet sessions...")); - CoflSky.Wrapper.startConnection(); - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Started the Connection to CoflNet")); + if(CoflSky.Wrapper.startConnection()) + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Started the Connection to CoflNet")); } public String StatusMessage() { |