浏览代码

Phase 3: Fix the location it expects files to be in. Also, directory creation appears broken in
spout-dev atm?

Ben Diskmaster L 14 年之前
父节点
当前提交
b83b69c7ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/com/gmail/nossr50/spout/SpoutStuff.java

+ 1 - 1
src/com/gmail/nossr50/spout/SpoutStuff.java

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