mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
SPIGOT-1546: Use isPassenger, not misleading getVehicle
This commit is contained in:
parent
ed6fb19564
commit
b04e7cb3a8
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ }
|
||||
+ if ( !( entity instanceof EntityArrow ) )
|
||||
+ {
|
||||
+ if ( !entity.onGround || !entity.passengers.isEmpty() || entity.getVehicle()!= null )
|
||||
+ if ( !entity.onGround || !entity.passengers.isEmpty() || entity.isPassenger() )
|
||||
+ {
|
||||
+ return true;
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue