From f31c4fda8206ff3cca264b7f8ad1af13c8c37ca1 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 3 Sep 2016 13:49:56 +1000 Subject: [PATCH] Try now --- .../boydti/fawe/bukkit/wrapper/AsyncWorld.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/bukkit0/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java b/bukkit0/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java index de5474e6..1697aaee 100644 --- a/bukkit0/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java +++ b/bukkit0/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java @@ -125,24 +125,9 @@ public class AsyncWorld implements World { * @param creator * @return */ - public static AsyncWorld create(final WorldCreator creator) { - if (!loading.compareAndSet(false, true)) { - synchronized (loading) { - while (loading.get()) { - try { - loading.wait(10000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - } + public synchronized static AsyncWorld create(final WorldCreator creator) { BukkitQueue_0 queue = (BukkitQueue_0) SetQueue.IMP.getNewQueue(creator.name(), true, false); World world = queue.createWorld(creator); - synchronized (loading) { - loading.set(false); - loading.notifyAll(); - } return wrap(world); }