mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
reduce mob Y axis attack reach
This commit is contained in:
@@ -667,7 +667,7 @@ void handleServerTick (int64_t time_since_last_tick) {
|
|||||||
} else { // Hostile mob movement handling
|
} else { // Hostile mob movement handling
|
||||||
|
|
||||||
// If we're already next to the player, hurt them and skip movement
|
// 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);
|
hurtEntity(closest_player->client_fd, 65536 + i, D_generic, 6);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user