From 1503ba94a424d1d2c4f93f3111ce66e22dcca0d5 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 23 Apr 2019 23:44:47 +1000 Subject: [PATCH] Forgot FAWE was already added to lookup names --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ad763e576..98bdd949f 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 @@ -322,7 +322,8 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter if (file.length() == 1988) return; } File dummy = MainUtil.copyFile(MainUtil.getJarFile(), "DummyFawe.src", pluginsFolder, "DummyFawe.jar"); - if (dummy != null && dummy.exists() && Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") == null) { + File newFile = new File(pluginsFolder, "DummyFawe.jar"); + if (dummy != null && dummy.exists() && !newFile.exists()) { try { Bukkit.getPluginManager().loadPlugin(dummy); } catch (Throwable e) {