mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix confused farmland wettening height
This commit is contained in:
parent
0c2ee1b526
commit
35e928bbb7
1 changed files with 2 additions and 2 deletions
|
@ -72,9 +72,9 @@ minetest.register_abm({
|
|||
end
|
||||
end
|
||||
|
||||
-- Check an area of 9×2×9 around the node for nodename
|
||||
-- Check an area of 9×2×9 around the node for nodename (9×9 on same level and 9×9 below)
|
||||
local check_surroundings = function(pos, nodename)
|
||||
local nodes = minetest.find_nodes_in_area({x=pos.x-4,y=pos.y-1,z=pos.z-4}, {x=pos.x+4,y=pos.y,z=pos.z+4}, {nodename})
|
||||
local nodes = minetest.find_nodes_in_area({x=pos.x-4,y=pos.y,z=pos.z-4}, {x=pos.x+4,y=pos.y+1,z=pos.z+4}, {nodename})
|
||||
return #nodes > 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue