1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

vary yaw angle randomly for all mobs

This commit is contained in:
p2r3
2025-08-27 15:30:35 +03:00
parent 39255caef3
commit 035be84850

View File

@@ -1131,6 +1131,9 @@ void handleServerTick (int64_t time_since_last_tick) {
} }
// Vary the yaw angle to look just a little less robotic
yaw += ((r >> 7) & 31) - 16;
// Check if the blocks we're moving into are passable: // Check if the blocks we're moving into are passable:
// if yes, and the block below is solid, keep the same Y level; // if yes, and the block below is solid, keep the same Y level;
// if yes, but the block below isn't solid, drop down one block; // if yes, but the block below isn't solid, drop down one block;