From 852ce71dbc6ff48382e90c286cf54754189d62ac Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 19 Nov 2024 16:12:42 +1300 Subject: [PATCH] Don't handle null players, fixes #780 --- .../packetlisteners/PacketListenerVehicleMovement.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerVehicleMovement.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerVehicleMovement.java index 669c1f58..7542d841 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerVehicleMovement.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerVehicleMovement.java @@ -133,6 +133,10 @@ public class PacketListenerVehicleMovement extends SimplePacketListenerAbstract public void onPacketPlaySend(PacketPlaySendEvent event) { Player player = event.getPlayer(); + if (player == null) { + return; + } + if (event.getPacketType() == PacketType.Play.Server.SET_PASSENGERS) { WrapperPlayServerSetPassengers packet;