aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/CoflSkyCommand.java
diff options
context:
space:
mode:
authorÄkwav <16632490+Ekwav@users.noreply.github.com>2021-11-05 23:26:27 +0100
committerGitHub <noreply@github.com>2021-11-05 23:26:27 +0100
commite7ad35aec14bc4804762843948973fc4af687c04 (patch)
tree7fe6a9fa5040a0fada33a93720fd29a5cbac5206 /src/main/java/de/torui/coflsky/CoflSkyCommand.java
parent52bc80f092c0ea58063008d2257b4e6f52f4b272 (diff)
parent7c1eb7049159f0011f138c02788b2b630f5480a1 (diff)
downloadCOFL-e7ad35aec14bc4804762843948973fc4af687c04.tar.gz
COFL-e7ad35aec14bc4804762843948973fc4af687c04.tar.bz2
COFL-e7ad35aec14bc4804762843948973fc4af687c04.zip
Merge pull request #34 from Coflnet/fix/graceful-fail
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.java4
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 43826f9..20cfeba 100644
--- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java
+++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
@@ -107,8 +107,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() {