This commit is contained in:
huangyuhui
2016-02-13 18:04:44 +08:00
parent 69eaa04ff6
commit a567ab1984
2 changed files with 1 additions and 3 deletions

View File

@@ -168,8 +168,6 @@ public final class Main implements Runnable {
}
});
}
if (true)
throw new IOException("???");
try {
PluginManager.plugin().showUI();

View File

@@ -99,7 +99,7 @@ public final class ModpackManager {
String description = C.i18n("modpack.install.will_install");
try (ZipFile zip = new ZipFile(input)) {
HashMap map = C.GSON.fromJson(new InputStreamReader(zip.getInputStream(zip.getEntry("modpack.json"))), HashMap.class);
HashMap map = C.GSON.fromJson(new InputStreamReader(zip.getInputStream(zip.getEntry("modpack.json")), "UTF-8"), HashMap.class);
if (map != null) {
if (id == null)
if (map.containsKey("name") && map.get("name") instanceof String)