Merge pull request #2311 from kacpherek/fix/1661-shulker-rotation
🤖 Agent: Proven in union R1 (branch union/cg19-r1, main + 83 of kacpherek's PRs): the 98 harnesses it can affect, clippy -D warnings, tests, lan_e2e in-frame and on the server thread.
This commit is contained in:
@@ -417,6 +417,13 @@ impl Mob {
|
||||
}
|
||||
/// BodyRotationControl.clientTick (Mob.tickHeadTurn).
|
||||
pub fn body_rotation_tick(&mut self) {
|
||||
// Shulker.ShulkerBodyRotationControl.clientTick is empty: the body
|
||||
// stays at 0 (recreateFromPacket), only the head turns.
|
||||
if self.species() == super::Species::Shulker {
|
||||
self.body_yaw = 0.0;
|
||||
self.previous_body_yaw = 0.0;
|
||||
return;
|
||||
}
|
||||
let dx = self.position.x - self.previous.x;
|
||||
let dz = self.position.z - self.previous.z;
|
||||
let max = self.kind.max_head_y_rot;
|
||||
|
||||
Reference in New Issue
Block a user