mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 01:32:02 -07:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user