From 1d7d2cd52ee85d5fd070a691525a76a1bb6a98b8 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 5 Jun 2012 11:05:44 -0400 Subject: [PATCH] Make it static. --- src/main/java/com/gmail/nossr50/mcMMO.java | 2 +- src/main/java/com/gmail/nossr50/spout/SpoutStuff.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 39f210c5e..5269d4e7c 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -97,7 +97,7 @@ public class mcMMO extends JavaPlugin { public static RepairManager repairManager; /* Jar Stuff */ - public File mcmmo; + public static File mcmmo; //File Paths public static String mainDirectory; diff --git a/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java b/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java index 53f4362b0..075d9624b 100644 --- a/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java +++ b/src/main/java/com/gmail/nossr50/spout/SpoutStuff.java @@ -54,8 +54,8 @@ public class SpoutStuff { private static void writeFile(String theFileName, String theFilePath) { try { File currentFile = new File(theFilePath + theFileName); - - JarFile jar = new JarFile(plugin.mcmmo); + + JarFile jar = new JarFile(mcMMO.mcmmo); JarEntry entry = jar.getJarEntry("resources/" + theFileName); InputStream is = jar.getInputStream(entry);