Don't handle null players, fixes #780

This commit is contained in:
libraryaddict 2024-11-19 16:12:42 +13:00
parent 9815a74e55
commit 852ce71dbc

View File

@ -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;