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