mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +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 changed files with 2 additions and 1 deletions
|
@ -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 a new issue