From be6aaf046eed614b0034ec42d5ef5e6f7de16ff0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 24 Jun 2020 10:05:39 +1000 Subject: [PATCH] SPIGOT-5782: Set Arrow Launched From Crossbow --- .../java/org/bukkit/craftbukkit/entity/CraftArrow.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java index 29d23db412..228e1327ca 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java @@ -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;