Commit d71dab5ed49dc2d5edc8193b23a6858ee5c6a7be

Authored by Mumfrey
1 parent 2ceb8ad8

remove dependency on Util since it doesn't exist server-side

java/common/com/mumfrey/liteloader/core/LiteLoaderUpdateSite.java
... ... @@ -4,9 +4,6 @@ import java.io.File;
4 4 import java.io.IOException;
5 5 import java.io.InputStream;
6 6  
7   -import net.minecraft.util.Util;
8   -import net.minecraft.util.Util.EnumOS;
9   -
10 7 import com.google.common.io.ByteSink;
11 8 import com.google.common.io.Files;
12 9 import com.mumfrey.liteloader.launch.ClassPathUtilities;
... ... @@ -166,7 +163,7 @@ public class LiteLoaderUpdateSite extends UpdateSite
166 163 {
167 164 File javaBin = new File(new File(System.getProperty("java.home")), "bin");
168 165 File javaWin = new File(javaBin, "javaw.exe");
169   -
170   - return Util.getOSType() == EnumOS.WINDOWS && javaWin.isFile() ? javaWin : new File(javaBin, "java");
  166 + String osName = System.getProperty("os.name").toLowerCase();
  167 + return osName.contains("win") && javaWin.isFile() ? javaWin : new File(javaBin, "java");
171 168 }
172 169 }
... ...