Commit 2dc69203 authored by superblaubeere27's avatar superblaubeere27

Fixed bugs...

parent 59ebff01
......@@ -6,7 +6,7 @@
<groupId>net.ccbluex</groupId>
<artifactId>LiquidLauncher</artifactId>
<version>1.26</version>
<version>1.27</version>
<build>
<plugins>
<plugin>
......
......@@ -46,7 +46,7 @@ public class LiquidLauncher {
public static final boolean DEVEL_VERSION = true;
public static final Logger LOGGER = Logger.getLogger(LAUNCHER_NAME);
public static final String LAUNCHER_OPENSOURCE_PROJECT = "https://git.liquidbounce.net/CCBlueX/LiquidLauncherV2";
public static final double LAUNCHER_VERSION = 1.26;
public static final double LAUNCHER_VERSION = 1.27;
public static final String LAUNCHER_VERSION_STRING = "v" + LAUNCHER_VERSION + "-SNAPSHOT";
private static final String LIQUIDLAUNCHER_DOWNLOAD = "https://ci.liquidbounce.net/job/LiquidLauncher/";
public static LiquidLauncher liquidLauncher;
......@@ -311,6 +311,10 @@ public class LiquidLauncher {
if (tree.getModsFolder().exists()) {
tree.getModsFolder().delete();
tree.getModsFolder().mkdirs();
}
File[] modFiles = tree.getModsFolder().listFiles();
if(modFiles != null) for (File modFile : modFiles) {
modFile.delete();
}
int seis = versionMods.get(clientBuild.getMinecraftVersion()).size();
for (int i = 0; i < seis; i++) {
......@@ -339,10 +343,7 @@ public class LiquidLauncher {
assetManager.checkAssetsForVersion(mcJ.get("assets").getAsString());
// Files.copy(tree.getOptifineFile(), new File(tree.getModsFolder(), "optifine.jar"));
File[] modFiles = tree.getModsFolder().listFiles();
if(modFiles != null) for (File modFile : modFiles) {
modFile.delete();
}
Files.copy(tree.getLiquidBounceFile(), new File(tree.getModsFolder(), "liquidbounce.jar"));
StringBuilder libraries = new StringBuilder();
libraries.append(libraryManager.getCPList(tree.getLibraryFolder()));
......
......@@ -35,7 +35,7 @@ public class CCToHTML {
int opened = 0;
boolean obfuscated = false;
for (int i = 0; i < colorCode.length(); i++) {
if (colorCode.charAt(i) == '§') {
if (colorCode.charAt(i) == '') {
i++;
if (colorCode.charAt(i) == 'k') {
obfuscated = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment