mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
fixed catus grow on watershed:drygrass
This commit is contained in:
parent
31384b2026
commit
65b7e44175
@ -228,7 +228,8 @@ function default.grow_cactus(pos, node)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
if minetest.get_item_group(minetest.get_node(pos).name, "sand") == 0 then
|
local name = minetest.get_node(pos).name
|
||||||
|
if minetest.get_item_group(name, "sand") == 0 and name ~= "watershed:drygrass" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
@ -270,7 +271,7 @@ end
|
|||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:cactus"},
|
nodenames = {"default:cactus"},
|
||||||
neighbors = {"group:sand"},
|
neighbors = {"group:sand", "watershed:drygrass"},
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 25,
|
chance = 25,
|
||||||
action = function(...)
|
action = function(...)
|
||||||
|
Loading…
Reference in New Issue
Block a user