diff --git a/Client/src/main/java/de/com/baseband/client/util/interact/Chat.java b/Client/src/main/java/de/com/baseband/client/util/interact/Chat.java index 35a0c2d..d0610fa 100644 --- a/Client/src/main/java/de/com/baseband/client/util/interact/Chat.java +++ b/Client/src/main/java/de/com/baseband/client/util/interact/Chat.java @@ -1,6 +1,7 @@ package de.com.baseband.client.util.interact; import com.mojang.realmsclient.gui.ChatFormatting; +import de.com.baseband.client.BaseBand; import de.com.baseband.client.Setup; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiChat; @@ -18,7 +19,7 @@ public class Chat { Minecraft.getMinecraft().player.sendMessage(new TextComponentString(ChatFormatting.LIGHT_PURPLE + Setup.get().Name.toLowerCase() + "~ " + ChatFormatting.RESET + s)); } else { - + BaseBand.LOGGER.info(s); } } diff --git a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient2.java b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient2.java index 4e3ce80..00fe586 100644 --- a/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient2.java +++ b/Client/src/main/java/de/com/baseband/client/util/net/WebServiceClient2.java @@ -15,19 +15,20 @@ import java.net.URL; public class WebServiceClient2 extends Thread { // TODO make - // -> https://downloads.baseband.com.de + // -> https://download.baseband.com.de BufferedReader connection; public Lock lock = new Lock(); boolean outdated = false; public WebServiceClient2() { + lock.lock(); try { - connection = new BufferedReader(new InputStreamReader(new URL("https://downloads.baseband.com.de/listen").openStream())); - lock.lock(); + connection = new BufferedReader(new InputStreamReader(new URL("https://download.baseband.com.de/listen").openStream())); } catch (MalformedURLException e) { throw new RuntimeException(e); } catch (IOException e) { + e.printStackTrace(); BaseBand.LOGGER.fatal("Cannot connect to WSC2."); BaseBand.shutdown(); }