From 459551a9d5bc0106e1e63080b7879ae55e78031d Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 29 Feb 2016 20:26:39 -0600 Subject: [PATCH] Fix ServerListPingEvent flagging as Async This event can sometimes fire Async, set the proper boolean --- .../src/main/java/org/bukkit/event/server/ServerEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java index 46b119017a..05167fb34e 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java @@ -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) {