Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@@ -184,6 +184,9 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOnGround() {
|
public boolean isOnGround() {
|
||||||
|
if (entity instanceof EntityArrow) {
|
||||||
|
return ((EntityArrow) entity).isInGround();
|
||||||
|
}
|
||||||
return entity.onGround;
|
return entity.onGround;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user