Fix shovel able to make grass path from below

This commit is contained in:
Wuzzy 2017-07-08 18:11:27 +02:00
parent 07bb0e0cb1
commit 97b0d6f85c

View file

@ -166,6 +166,10 @@ local make_grass_path = function(itemstack, placer, pointed_thing)
end
end
-- Only make grass path if tool used on side or top of target node
if pointed_thing.above.y < pointed_thing.under.y then
return
end
if (node.name == "mcl_core:dirt_with_grass" or node.name == "mcl_core:dirt_with_grass_snow") then
local above = table.copy(pointed_thing.under)
above.y = above.y + 1