mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -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.onGround || !entity.passengers.isEmpty() || entity.getVehicle()!= null )
|
||||
+ if ( !entity.onGround || !entity.passengers.isEmpty() || entity.isPassenger() )
|
||||
+ {
|
||||
+ return true;
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user