mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-19 09:05:43 +01:00
e4d10a6d67
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
31 lines
920 B
Diff
31 lines
920 B
Diff
From d55149dcb67c6bfd3e31d8fbc98345e02abf0175 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
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 46b119017..05167fb34 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) {
|
|
--
|
|
2.25.1
|
|
|