From 97b0d6f85c274633d85c2ceac7eeb71f60acc517 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 8 Jul 2017 18:11:27 +0200 Subject: [PATCH] Fix shovel able to make grass path from below --- mods/ITEMS/mcl_tools/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_tools/init.lua b/mods/ITEMS/mcl_tools/init.lua index d89a98b3ed..ee068610f5 100644 --- a/mods/ITEMS/mcl_tools/init.lua +++ b/mods/ITEMS/mcl_tools/init.lua @@ -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