Skip to content

Commit

Permalink
Don't handle null players, fixes #780
Browse files Browse the repository at this point in the history
  • Loading branch information
libraryaddict committed Nov 19, 2024
1 parent 9815a74 commit 852ce71
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ private void updatePassengersRecursive(int depth, Player player, PlayerTracker t
public void onPacketPlaySend(PacketPlaySendEvent event) {
Player player = event.getPlayer();

if (player == null) {
return;
}

if (event.getPacketType() == PacketType.Play.Server.SET_PASSENGERS) {
WrapperPlayServerSetPassengers packet;

Expand Down

0 comments on commit 852ce71

Please sign in to comment.