Commits

md_5 authored b54b9409e02
SPIGOT-2864: Make Arrow / Item setTicksLived behave like FallingBlock
No tags

nms-patches/EntityArrow.patch

Modified
7 7 +// CraftBukkit start
8 8 +import org.bukkit.entity.LivingEntity;
9 9 +import org.bukkit.event.entity.EntityCombustByEntityEvent;
10 10 +import org.bukkit.event.entity.EntityCombustEvent;
11 11 +import org.bukkit.event.player.PlayerPickupArrowEvent;
12 12 +// CraftBukkit end
13 13 +
14 14 public abstract class EntityArrow extends Entity implements IProjectile {
15 15
16 16 private static final Predicate<Entity> g = IEntitySelector.f.and(IEntitySelector.a.and(Entity::isInteractable));
17 +@@ -22,7 +29,7 @@
18 + public EntityArrow.PickupStatus fromPlayer;
19 + public int shake;
20 + public UUID shooter;
21 +- private int despawnCounter;
22 ++ public int despawnCounter; // PAIL
23 + private int aB;
24 + private double damage;
25 + public int knockbackStrength;
17 26 @@ -250,6 +257,7 @@
18 27 }
19 28
20 29 protected void a(MovingObjectPosition movingobjectposition) {
21 30 + org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // CraftBukkit - Call event
22 31 if (movingobjectposition.entity != null) {
23 32 this.b(movingobjectposition);
24 33 } else {
25 34 @@ -299,7 +307,13 @@
26 35 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut