1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Should fix the nullptr on the Bukkit version too

This commit is contained in:
Tim203
2020-01-18 14:36:13 +01:00
parent 9f9f6a1ab6
commit b4365e2d0d

View File

@@ -89,7 +89,7 @@ public class PacketHandler extends MessageToMessageDecoder<Object> {
// Use a spoofedUUID for initUUID (just like Bungeecord)
setValue(networkManager, "spoofedUUID", player.getJavaUniqueId());
// Use the player his IP for stuff instead of Geyser his IP
SocketAddress newAddress = InetSocketAddress.createUnresolved(
SocketAddress newAddress = new InetSocketAddress(
bedrockData.getIp(),
((InetSocketAddress)ctx.channel().remoteAddress()).getPort()
);