diff --git a/pumpkin/src/entity/living.rs b/pumpkin/src/entity/living.rs index 8119a9aaa..fa044862a 100644 --- a/pumpkin/src/entity/living.rs +++ b/pumpkin/src/entity/living.rs @@ -42,9 +42,10 @@ pub struct LivingEntity { } impl LivingEntity { pub fn new(entity: Entity) -> Self { + let pos = entity.pos.load(); Self { entity, - last_pos: AtomicCell::new(Vector3::new(0.0, 0.0, 0.0)), + last_pos: AtomicCell::new(pos), time_until_regen: AtomicI32::new(0), last_damage_taken: AtomicCell::new(0.0), health: AtomicCell::new(20.0),