Merge branch 'heads/pt3/3113' into union/pt3-1

This commit is contained in:
Ludovic Marie committed 2026-10-29 10:20:49 +01:00
commit edfb0e31d5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -918,7 +918,7 @@ impl Game<'_> {
);
}
// EntityType.EYE_OF_ENDER: 0.25 by 0.25, never turned.
for (previous, now) in self.end.eye_positions() {
for (previous, now) in self.end.eye_motions() {
let v = |p: glam::DVec3| Vec3::new(p.x, p.y, p.z);
g.hitbox(
at(v(previous), v(now)),
+1 -1
View File
@@ -182,7 +182,7 @@ impl EndState {
});
}
/// Where each eye in flight was last tick and is now (the hitbox view).
pub(super) fn eye_positions(&self) -> impl Iterator<Item = (glam::DVec3, glam::DVec3)> + '_ {
pub(super) fn eye_motions(&self) -> impl Iterator<Item = (glam::DVec3, glam::DVec3)> + '_ {
self.eyes.iter().map(|e| (e.previous, e.position))
}
/// `EyeOfEnder.tick` on a server's client: it moves by its last known