mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
Return inGround when checking Arrow's OnGround state. Fixes BUKKIT-4439
This commit is contained in:
parent
a31158bd0b
commit
67f15266da
2 changed files with 9 additions and 0 deletions
|
@ -444,4 +444,10 @@ public class EntityArrow extends Entity implements IProjectile {
|
||||||
|
|
||||||
return (b0 & 1) != 0;
|
return (b0 & 1) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CraftBukkit start
|
||||||
|
public boolean isInGround() {
|
||||||
|
return inGround;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue