Fix Minecraft crashing when in offline & multiplayer mode.

This commit is contained in:
huanghongxun
2015-08-27 13:02:55 +08:00
parent fef88c0144
commit 981a11d98b
6 changed files with 11 additions and 20 deletions

View File

@@ -17,7 +17,6 @@
package org.jackhuang.hellominecraft.utils;
import org.jackhuang.hellominecraft.utils.system.MessageBox;
import com.google.gson.GsonBuilder;
import com.sun.management.OperatingSystemMXBean;
import java.awt.Desktop;
import java.awt.Image;
@@ -45,12 +44,6 @@ import org.jackhuang.hellominecraft.HMCLog;
*/
public final class Utils {
private static final GsonBuilder gsonBuilder = new GsonBuilder().setPrettyPrinting();
public static GsonBuilder getDefaultGsonBuilder() {
return gsonBuilder;
}
public static String[] getURL() {
URL[] urls = ((URLClassLoader) Utils.class.getClassLoader()).getURLs();
String[] urlStrings = new String[urls.length];