Update AsyncCreatorAdapter.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-08-08 16:43:00 +02:00 committed by GitHub
parent dc8eda4df5
commit a185b6b4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,8 @@ public class AsyncCreatorAdapter implements CreatorAdapter {
@Override
public void create(WorldCreator creator, SystemWorld sw, Runnable r) {
TaskManager.IMP.async(() -> {
// moved IMP to INSTANCE
TaskManager.INSTANCE.async(() -> {
AsyncWorld world;
if (Bukkit.getWorld(creator.name()) == null)
world = AsyncWorld.create(creator);