mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 17:51:31 +01:00
Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
0bd50eb9fb
commit
5bd02e83f2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user