mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
fix water check for soil (3 horizontal, 1 below)
This commit is contained in:
4
soil.lua
4
soil.lua
@ -54,9 +54,9 @@ minetest.register_abm({
|
||||
-- check if there is water nearby and change soil accordingly
|
||||
-- if minetest.find_node_near(pos, 3, {"group:water"}) then
|
||||
|
||||
-- check if water is within 3 nodes horizontally and 2 below
|
||||
-- check if water is within 3 nodes horizontally and 1 below
|
||||
if #minetest.find_nodes_in_area(
|
||||
{x = pos.x + 3, y = pos.y + 2, z = pos.z + 3},
|
||||
{x = pos.x + 3, y = pos.y - 1, z = pos.z + 3},
|
||||
{x = pos.x - 3, y = pos.y , z = pos.z - 3},
|
||||
{"group:water"}) > 0 then
|
||||
|
||||
|
Reference in New Issue
Block a user