Fix ServerListPingEvent flagging as Async

This event can sometimes fire Async, set the proper boolean
This commit is contained in:
Aikar 2016-02-29 20:26:39 -06:00
parent 8b45793902
commit 459551a9d5

View File

@ -1,5 +1,6 @@
package org.bukkit.event.server; package org.bukkit.event.server;
import org.bukkit.Bukkit;
import org.bukkit.event.Event; import org.bukkit.event.Event;
/** /**
@ -8,7 +9,7 @@ import org.bukkit.event.Event;
public abstract class ServerEvent extends Event { public abstract class ServerEvent extends Event {
public ServerEvent() { public ServerEvent() {
super(); super(!Bukkit.isPrimaryThread()); // Paper
} }
public ServerEvent(boolean isAsync) { public ServerEvent(boolean isAsync) {