mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
SPIGOT-1546: Use isPassenger, not misleading getVehicle
This commit is contained in:
@@ -427,7 +427,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ if ( !( entity instanceof EntityArrow ) )
|
+ if ( !( entity instanceof EntityArrow ) )
|
||||||
+ {
|
+ {
|
||||||
+ if ( !entity.onGround || !entity.passengers.isEmpty() || entity.getVehicle()!= null )
|
+ if ( !entity.onGround || !entity.passengers.isEmpty() || entity.isPassenger() )
|
||||||
+ {
|
+ {
|
||||||
+ return true;
|
+ return true;
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user