From daa4fe5fb5a853d20384e8efc2ae4e6f2d3efd38 Mon Sep 17 00:00:00 2001 From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Date: Mon, 23 Jun 2025 22:39:41 -0400 Subject: [PATCH] Use hasImpulse vs hurtMarked for setVelocity This will prevent projectiles from using the less accurate path for updating motion when interfaced with the API. However, hasImpulse is the more proper way of marking that the entity needs its velocity updated anyways. This seems to be fairly unused logic in vanilla --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index a41f481a1e..f14fb60440 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -200,7 +200,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { } // Paper end this.entity.setDeltaMovement(CraftVector.toVec3(velocity)); - this.entity.hurtMarked = true; + this.entity.hasImpulse = true; } /**