]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/server/ServerRunner.java
Move versions to manifest file
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / server / ServerRunner.java
index 5924988c34c5a94f3094df3709b4ce7a624e5a29..b6a1cab9d5377aee6f3921ffc108171fc4721790 100644 (file)
@@ -1,5 +1,6 @@
 package com.irtimaled.bbor.server;
 
+import com.irtimaled.bbor.Versions;
 import net.minecraft.launchwrapper.Launch;
 
 import java.io.File;
@@ -46,8 +47,8 @@ public class ServerRunner {
         addURL.accept(file.toURI().toURL());
     }
 
-    public static void run(String version, List<String> args) throws IOException {
-        String serverJarUrl = VANILLA_SERVER_JARS.get(version);
+    public static void run(List<String> args) throws IOException {
+        String serverJarUrl = VANILLA_SERVER_JARS.get(Versions.minecraft);
 
         addURLToClasspath(getOrDownload(new File("."), serverJarUrl));
         for (String url : LIBRARIES) {