From dcee873b57e00080a4607a1e4251bd34c9ac7c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?= Date: Wed, 11 Mar 2020 13:35:37 +0800 Subject: [PATCH] fix typo --- .../java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 164ec18c5..a3cc772c0 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -438,11 +438,9 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter protected void createDefaultConfiguration(String name) { File actual = new File(getDataFolder(), name); if (!actual.exists()) { - try { - try (InputStream stream = getResource("defaults/" + name)) { - if (stream == null) throw new FileNotFoundException(); - copyDefaultConfig(stream, actual, name); - } + try (InputStream stream = getResource("defaults/" + name)) { + if (stream == null) throw new FileNotFoundException(); + copyDefaultConfig(stream, actual, name); } catch (IOException e) { getLogger().severe("Unable to read default configuration: " + name); }