mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 11:27:35 +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;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
/**
|
||||
@ -8,7 +9,7 @@ import org.bukkit.event.Event;
|
||||
public abstract class ServerEvent extends Event {
|
||||
|
||||
public ServerEvent() {
|
||||
super();
|
||||
super(!Bukkit.isPrimaryThread()); // Paper
|
||||
}
|
||||
|
||||
public ServerEvent(boolean isAsync) {
|
||||
|
Loading…
Reference in New Issue
Block a user