Fix build
This commit is contained in:
parent
081c0439f9
commit
3e99b11291
1 changed files with 13 additions and 14 deletions
|
@ -1,17 +1,5 @@
|
|||
package techreborn.manual.loader;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import reborncore.common.util.Unzip;
|
||||
import techreborn.manual.PageCollection;
|
||||
import techreborn.manual.Reference;
|
||||
import techreborn.manual.loader.pages.CategoriesPage;
|
||||
import techreborn.manual.pages.ContentsPage;
|
||||
import techreborn.manual.saveFormat.ManualFormat;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
@ -20,7 +8,18 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
|
||||
import techreborn.manual.PageCollection;
|
||||
import techreborn.manual.Reference;
|
||||
import techreborn.manual.loader.pages.CategoriesPage;
|
||||
import techreborn.manual.saveFormat.ManualFormat;
|
||||
|
||||
/**
|
||||
* Created by modmuss50 on 23/04/2016.
|
||||
|
@ -85,7 +84,7 @@ public class ManualLoader {
|
|||
}
|
||||
if(hasIntactZip){
|
||||
File outputDir = new File(manualdir, zipLocation.getName().replace(".zip", ""));
|
||||
Unzip.unzip(zipLocation, outputDir);
|
||||
//Unzip.unzip(zipLocation, outputDir);
|
||||
File inputData = new File(outputDir, "master.json");
|
||||
BufferedReader reader = new BufferedReader(new FileReader(inputData));
|
||||
ManualLoader.format = gson.fromJson(reader, ManualFormat.class);
|
||||
|
|
Loading…
Add table
Reference in a new issue