aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch
diff options
context:
space:
mode:
authorNoah van der Aa <[email protected]>2021-12-01 02:31:13 +0100
committerGitHub <[email protected]>2021-11-30 17:31:13 -0800
commitcd9fe9ca642322f8ba560a8c0f86c877af2cd10f (patch)
tree0099ebdd316d7b54e32fde7c5039011555b330ad /patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch
parenteffa3bad36df91b9cca1920e357b963806f62ff6 (diff)
downloadPaper-cd9fe9ca642322f8ba560a8c0f86c877af2cd10f.tar.gz
Paper-cd9fe9ca642322f8ba560a8c0f86c877af2cd10f.zip
Port flat bedrock (generator settings) to 1.18 (#6960)
Diffstat (limited to 'patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch')
-rw-r--r--patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch b/patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch
deleted file mode 100644
index 699e712c81..0000000000
--- a/patches/server/0651-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Connor Linfoot <[email protected]>
-Date: Wed, 12 May 2021 08:09:19 +0100
-Subject: [PATCH] Add raw address to AsyncPlayerPreLoginEvent
-
-
-diff --git a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
-index 8dc1e8bba37986c75966e321614ebb6366729c29..45db764f4499ee71bef691d37b604f21da120fe7 100644
---- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
-+++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
-@@ -352,12 +352,13 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener
- // Paper end
- String playerName = ServerLoginPacketListenerImpl.this.gameProfile.getName();
- java.net.InetAddress address = ((java.net.InetSocketAddress) ServerLoginPacketListenerImpl.this.connection.getRemoteAddress()).getAddress();
-+ java.net.InetAddress rawAddress = ((java.net.InetSocketAddress) connection.getRawAddress()).getAddress(); // Paper
- java.util.UUID uniqueId = ServerLoginPacketListenerImpl.this.gameProfile.getId();
- final org.bukkit.craftbukkit.CraftServer server = ServerLoginPacketListenerImpl.this.server.server;
-
- // Paper start
- PlayerProfile profile = CraftPlayerProfile.asBukkitMirror(ServerLoginPacketListenerImpl.this.gameProfile);
-- AsyncPlayerPreLoginEvent asyncEvent = new AsyncPlayerPreLoginEvent(playerName, address, uniqueId, profile);
-+ AsyncPlayerPreLoginEvent asyncEvent = new AsyncPlayerPreLoginEvent(playerName, address, rawAddress, uniqueId, profile);
- server.getPluginManager().callEvent(asyncEvent);
- profile = asyncEvent.getPlayerProfile();
- profile.complete(true);