Add equivalence code for the snowy dirt blocks

This commit is contained in:
Wuzzy 2017-04-01 06:51:55 +02:00
parent a4eba91c1e
commit 6eed06f7fc
6 changed files with 16 additions and 12 deletions

View file

@ -166,7 +166,7 @@ local make_grass_path = function(itemstack, placer, pointed_thing)
end
end
if node.name == "mcl_core:dirt_with_grass" and pointed_thing.above.y == pointed_thing.under.y then
if (node.name == "mcl_core:dirt_with_grass" or node.name == "mcl_core:dirt_with_grass_snow") and pointed_thing.above.y == pointed_thing.under.y then
local above = table.copy(pointed_thing.under)
above.y = above.y + 1
if minetest.get_node(above).name == "air" then