Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2013-07-10 20:25:34 -04:00
parent 0bd50eb9fb
commit 5bd02e83f2

View File

@ -184,6 +184,9 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
public boolean isOnGround() {
if (entity instanceof EntityArrow) {
return ((EntityArrow) entity).isInGround();
}
return entity.onGround;
}