Move wind trail particles behind the player's view

This commit is contained in:
Sollace 2024-05-25 21:08:38 +01:00
parent 7937604c41
commit d716d2e00b
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -89,7 +89,8 @@ public class WindParticle extends AbstractBillboardParticle {
trail.update(new Vec3d(x + cos, y + sin, z - cos)); trail.update(new Vec3d(x + cos, y + sin, z - cos));
} else { } else {
if (target != null && target.isAlive()) { if (target != null && target.isAlive()) {
trail.update(target.getPos().add(offset).add(cos, sin, -cos));
trail.update(target.getPos().add(target.getRotationVecClient().multiply(-7)).add(offset).add(cos, sin, -cos));
if (attachmentTicks > 0 && --attachmentTicks <= 0) { if (attachmentTicks > 0 && --attachmentTicks <= 0) {
target = null; target = null;