mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 20:31:37 +01:00
Fix ServerListPingEvent flagging as Async
This event can sometimes fire Async, set the proper boolean
This commit is contained in:
parent
8b45793902
commit
459551a9d5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user