diff options
Diffstat (limited to 'Spigot-API-Patches-Unmapped/0019-Fix-ServerListPingEvent-flagging-as-Async.patch')
-rw-r--r-- | Spigot-API-Patches-Unmapped/0019-Fix-ServerListPingEvent-flagging-as-Async.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Spigot-API-Patches-Unmapped/0019-Fix-ServerListPingEvent-flagging-as-Async.patch b/Spigot-API-Patches-Unmapped/0019-Fix-ServerListPingEvent-flagging-as-Async.patch new file mode 100644 index 0000000000..87d3369578 --- /dev/null +++ b/Spigot-API-Patches-Unmapped/0019-Fix-ServerListPingEvent-flagging-as-Async.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +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 + +diff --git a/src/main/java/org/bukkit/event/server/ServerEvent.java b/src/main/java/org/bukkit/event/server/ServerEvent.java +index 46b119017a1e3dfcd9ae5fb91b4fe8c20b0d6b86..05167fb34e4c42edc67af6e6700a2a3cc0f92769 100644 +--- a/src/main/java/org/bukkit/event/server/ServerEvent.java ++++ b/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) { |