Papyrus: Grow on dirt and grass only, remove from desert ocean
This commit is contained in:
parent
8148bbf95e
commit
f4a412d9c1
2 changed files with 3 additions and 4 deletions
|
@ -152,8 +152,7 @@ end
|
|||
function default.grow_papyrus(pos, node)
|
||||
pos.y = pos.y - 1
|
||||
local name = minetest.get_node(pos).name
|
||||
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and
|
||||
name ~= "default:sand" then
|
||||
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
|
||||
return
|
||||
end
|
||||
if not minetest.find_node_near(pos, 3, {"group:water"}) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue