diff --git a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index b8b7974c..2d3e1381 100644 --- a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -417,8 +417,7 @@ private void configureLogger() { * @param actual The destination file * @param defaultName The name of the file inside the jar's defaults folder */ - public void createDefaultConfiguration(File actual, - String defaultName) { + public void createDefaultConfiguration(File actual, String defaultName) { // Make parent directories File parent = actual.getParentFile(); @@ -430,16 +429,15 @@ public void createDefaultConfiguration(File actual, return; } - InputStream input = - null; - try { - JarFile file = new JarFile(getFile()); - ZipEntry copy = file.getEntry("defaults/" + defaultName); - if (copy == null) throw new FileNotFoundException(); - input = file.getInputStream(copy); - } catch (IOException e) { - WorldGuard.logger.severe("Unable to read default configuration: " + defaultName); - } + InputStream input = null; + try { + JarFile file = new JarFile(getFile()); + ZipEntry copy = file.getEntry("defaults/" + defaultName); + if (copy == null) throw new FileNotFoundException(); + input = file.getInputStream(copy); + } catch (IOException e) { + WorldGuard.logger.severe("Unable to read default configuration: " + defaultName); + } if (input != null) { FileOutputStream output = null;