mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix confused farmland wettening height
This commit is contained in:
parent
0c2ee1b526
commit
35e928bbb7
@ -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 New Issue
Block a user