Update on sync thread where possible

This commit is contained in:
Frank van der Heijden 2020-07-20 02:06:28 +02:00
parent 71b6a5fa02
commit 6c8a93dc1b
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
4 changed files with 22 additions and 8 deletions

View file

@ -6,6 +6,11 @@ import net.md_5.bungee.api.ProxyServer;
public class BungeeTaskManager extends AbstractTaskManager {
@Override
public void runTask(Runnable runnable) {
runTaskAsynchronously(runnable);
}
@Override
public void runTaskAsynchronously(Runnable runnable) {
ProxyServer.getInstance().getScheduler().runAsync(ServerUtils.getInstance(), runnable);