Add equivalence code for the snowy dirt blocks
This commit is contained in:
parent
a4eba91c1e
commit
6eed06f7fc
6 changed files with 16 additions and 12 deletions
|
@ -261,14 +261,17 @@ function mcl_core.generate_tree(pos, trunk, leaves, typearbre)
|
|||
for dz=0,1 do
|
||||
pos.z = pos.z + dz
|
||||
--> 0
|
||||
if minetest.get_node(pos).name == "mcl_core:dirt_with_grass"
|
||||
or minetest.get_node(pos).name == "mcl_core:dirt" then else
|
||||
local name = minetest.get_node(pos).name
|
||||
if name == "mcl_core:dirt_with_grass"
|
||||
or name == "mcl_core:dirt_with_grass_snow"
|
||||
or name == "mcl_core:dirt" then else
|
||||
return
|
||||
end
|
||||
pos.x = pos.x+1
|
||||
--> 1
|
||||
if minetest.get_node(pos).name == "mcl_core:dirt_with_grass"
|
||||
or minetest.get_node(pos).name == "mcl_core:dirt" then else
|
||||
if name == "mcl_core:dirt_with_grass"
|
||||
or name == "mcl_core:dirt_with_grass_snow"
|
||||
or name == "mcl_core:dirt" then else
|
||||
return
|
||||
end
|
||||
pos.x = pos.x-1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue