From 7e524da9284e56cd847251eb9c5f5a89ced7dba5 Mon Sep 17 00:00:00 2001 From: Seth <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Fri, 29 Dec 2017 11:44:36 -0700 Subject: [PATCH] Forgot to optimize this. (#12) --- .../me/totalfreedom/totalfreedommod/discord/Discord.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java index 9a750325..fe0d0b11 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java @@ -31,13 +31,9 @@ public class Discord extends FreedomService public void startBot() { - if (!Strings.isNullOrEmpty(ConfigEntry.DISCORD_TOKEN.getString())) + enabled = !Strings.isNullOrEmpty(ConfigEntry.DISCORD_TOKEN.getString()); + if (!enabled) { - enabled = true; - } - else - { - enabled = false; return; } if (bot != null)