mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-01-05 18:58:59 +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) {
|
public void onPacketPlaySend(PacketPlaySendEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
|
if (player == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.getPacketType() == PacketType.Play.Server.SET_PASSENGERS) {
|
if (event.getPacketType() == PacketType.Play.Server.SET_PASSENGERS) {
|
||||||
WrapperPlayServerSetPassengers packet;
|
WrapperPlayServerSetPassengers packet;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user