From a99609e016cdea6b18103c4e93ef90c7c2d37c69 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 29 Oct 2016 21:23:30 +0100 Subject: [PATCH] Don't wrap buffer tasks in scheduler calls --- .../src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java | 2 +- .../src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java | 2 +- .../src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java index 76f5d444..5f39b207 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java @@ -138,7 +138,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin { updateTaskBuffer = new BufferedRequest(1000L, this::doAsync) { @Override protected Void perform() { - doAsync(new UpdateTask(LPBukkitPlugin.this)); + new UpdateTask(LPBukkitPlugin.this).run(); return null; } }; diff --git a/bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java b/bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java index eaae9c19..f0b9b096 100644 --- a/bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java +++ b/bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java @@ -114,7 +114,7 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin { updateTaskBuffer = new BufferedRequest(1000L, this::doAsync) { @Override protected Void perform() { - doAsync(new UpdateTask(LPBungeePlugin.this)); + new UpdateTask(LPBungeePlugin.this).run(); return null; } }; diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java b/sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java index 651190d1..79ebc7b1 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java @@ -154,7 +154,7 @@ public class LPSpongePlugin implements LuckPermsPlugin { updateTaskBuffer = new BufferedRequest(1000L, this::doAsync) { @Override protected Void perform() { - doAsync(new UpdateTask(LPSpongePlugin.this)); + new UpdateTask(LPSpongePlugin.this).run(); return null; } };