mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Don't handle null players, fixes #780
This commit is contained in:
parent
9815a74e55
commit
852ce71dbc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user