Phase 3: Fix the location it expects files to be in. Also, directory creation appears broken in

spout-dev atm?
This commit is contained in:
Ben Diskmaster L 2011-09-04 04:54:20 -05:00
parent 2877c733d5
commit b83b69c7ff

View File

@ -58,7 +58,7 @@ public class SpoutStuff
//System.out.println(theFileName); //System.out.println(theFileName);
@SuppressWarnings("static-access") @SuppressWarnings("static-access")
JarFile jar = new JarFile(plugin.mcmmo); JarFile jar = new JarFile(plugin.mcmmo);
JarEntry entry = jar.getJarEntry(theFileName); JarEntry entry = jar.getJarEntry("resources/"+theFileName);
InputStream is = jar.getInputStream(entry); InputStream is = jar.getInputStream(entry);
FileOutputStream os = new FileOutputStream(currentFile); FileOutputStream os = new FileOutputStream(currentFile);
byte[] buf = new byte[(int)entry.getSize()]; byte[] buf = new byte[(int)entry.getSize()];