From 5e67163d09706a20f5ae9216acae293a1971f17f Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 28 Mar 2023 14:11:30 +0100 Subject: [PATCH] fix flying mobs sinking into water --- api.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 6ea60b7..79cc3e7 100644 --- a/api.lua +++ b/api.lua @@ -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