diff --git a/src/procedures.c b/src/procedures.c index 5f8c403..f2190e3 100644 --- a/src/procedures.c +++ b/src/procedures.c @@ -667,7 +667,7 @@ void handleServerTick (int64_t time_since_last_tick) { } else { // Hostile mob movement handling // If we're already next to the player, hurt them and skip movement - if (closest_dist < 3) { + if (closest_dist < 3 && abs(mob_data[i].y - closest_player->y) < 2) { hurtEntity(closest_player->client_fd, 65536 + i, D_generic, 6); continue; }