From 5bd02e83f2f5f874ce0dd78c482c6ff11f08a195 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 10 Jul 2013 20:25:34 -0400 Subject: [PATCH] Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439 By: EvilSeph --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 4aec8e9e2b..8e2e5cda2a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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; }