|
@@ -48,11 +48,12 @@ public class SpoutStuff {
|
|
private static void writeFile(String theFileName, String theFilePath) {
|
|
private static void writeFile(String theFileName, String theFilePath) {
|
|
try {
|
|
try {
|
|
File currentFile = new File(theFilePath + theFileName);
|
|
File currentFile = new File(theFilePath + theFileName);
|
|
-
|
|
|
|
|
|
+
|
|
JarFile jar = new JarFile(mcMMO.mcmmo);
|
|
JarFile jar = new JarFile(mcMMO.mcmmo);
|
|
JarEntry entry = jar.getJarEntry("resources/" + theFileName);
|
|
JarEntry entry = jar.getJarEntry("resources/" + theFileName);
|
|
InputStream is = jar.getInputStream(entry);
|
|
InputStream is = jar.getInputStream(entry);
|
|
|
|
|
|
|
|
+
|
|
byte[] buf = new byte[2048];
|
|
byte[] buf = new byte[2048];
|
|
int nbRead;
|
|
int nbRead;
|
|
|
|
|
|
@@ -64,6 +65,7 @@ public class SpoutStuff {
|
|
|
|
|
|
os.flush();
|
|
os.flush();
|
|
os.close();
|
|
os.close();
|
|
|
|
+ jar.close();
|
|
}
|
|
}
|
|
catch (FileNotFoundException e) {
|
|
catch (FileNotFoundException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|