SPIGOT-5782: Set Arrow Launched From Crossbow

This commit is contained in:
md_5 2020-06-24 10:05:39 +10:00
parent 833da9c47d
commit be6aaf046e

View file

@ -110,6 +110,16 @@ public class CraftArrow extends AbstractProjectile implements AbstractArrow {
getHandle().despawnCounter = value;
}
@Override
public boolean isShotFromCrossbow() {
return getHandle().r();
}
@Override
public void setShotFromCrossbow(boolean shotFromCrossbow) {
getHandle().o(shotFromCrossbow);
}
@Override
public EntityArrow getHandle() {
return (EntityArrow) entity;