1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 17:50:21 +01:00

fix flying mobs sinking into water

This commit is contained in:
tenplus1 2023-03-28 14:11:30 +01:00
parent 81f99931fc
commit 5e67163d09

View File

@ -574,8 +574,7 @@ function mob_class:attempt_flight_correction(override)
local flyable_nodes = minetest.find_nodes_in_area(
{x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 0, z = pos.z + 1}, searchnodes)
-- pos.y + 0 hopefully fixes floating swimmers
{x = pos.x + 1, y = pos.y + 2, z = pos.z + 1}, searchnodes)
if #flyable_nodes < 1 then
return false