SPIGOT-1546: Use isPassenger, not misleading getVehicle

This commit is contained in:
md_5
2016-03-01 14:47:13 +11:00
parent ed6fb19564
commit b04e7cb3a8

View File

@@ -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;
+ } + }