Archiviert
13
0

Use non-deprecated super ctor in PaperServerListPingEventImpl (#8029)

Dieser Commit ist enthalten in:
Jake Potrebic 2022-06-21 08:54:52 -07:00 committet von GitHub
Ursprung fb2c24b36d
Commit 4c9317c9fb
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -6,7 +6,7 @@ Subject: [PATCH] Implement extended PaperServerListPingEvent
diff --git a/src/main/java/com/destroystokyo/paper/network/PaperServerListPingEventImpl.java b/src/main/java/com/destroystokyo/paper/network/PaperServerListPingEventImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..f57792d3f883a710c51bc736cff513aca4b75915
index 0000000000000000000000000000000000000000..2b10ce4ce36e519b757af96cb80921dfc3f09418
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/network/PaperServerListPingEventImpl.java
@@ -0,0 +1,31 @@
@ -25,7 +25,7 @@ index 0000000000000000000000000000000000000000..f57792d3f883a710c51bc736cff513ac
+ private final MinecraftServer server;
+
+ PaperServerListPingEventImpl(MinecraftServer server, StatusClient client, int protocolVersion, @Nullable CachedServerIcon icon) {
+ super(client, server.getMotd(), server.previewsChat(), server.getPlayerCount(), server.getMaxPlayers(),
+ super(client, server.server.motd(), server.previewsChat(), server.getPlayerCount(), server.getMaxPlayers(),
+ server.getServerModName() + ' ' + server.getServerVersion(), protocolVersion, icon);
+ this.server = server;
+ }