mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-23 20:19:36 +01:00
Flag GS4QueryEvent as async
This commit is contained in:
parent
692aedda04
commit
f2eac5efae
@ -6,7 +6,7 @@ Subject: [PATCH] Add GS4 Query event
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java b/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java
|
||||
new file mode 100644
|
||||
index 00000000..2ead0466
|
||||
index 00000000..77a19995
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java
|
||||
@@ -0,0 +0,0 @@
|
||||
@ -39,6 +39,7 @@ index 00000000..2ead0466
|
||||
+ private QueryResponse response;
|
||||
+
|
||||
+ public GS4QueryEvent(@NotNull QueryType queryType, @NotNull InetAddress querierAddress, @NotNull QueryResponse response) {
|
||||
+ super(true); // should always be called async
|
||||
+ this.queryType = Preconditions.checkNotNull(queryType, "queryType");
|
||||
+ this.querierAddress = Preconditions.checkNotNull(querierAddress, "querierAddress");
|
||||
+ this.response = Preconditions.checkNotNull(response, "response");
|
||||
|
Loading…
Reference in New Issue
Block a user