forked from mtcontrib/farming
hoe bomb removed grass on top of soil
This commit is contained in:
7
hoes.lua
7
hoes.lua
@ -37,11 +37,8 @@ farming.register_hoe = function(name, def)
|
|||||||
|
|
||||||
-- Register its recipe
|
-- Register its recipe
|
||||||
if def.recipe then
|
if def.recipe then
|
||||||
|
core.register_craft({ output = name:sub(2), recipe = def.recipe })
|
||||||
|
|
||||||
core.register_craft({
|
|
||||||
output = name:sub(2),
|
|
||||||
recipe = def.recipe
|
|
||||||
})
|
|
||||||
elseif def.material then
|
elseif def.material then
|
||||||
|
|
||||||
core.register_craft({
|
core.register_craft({
|
||||||
@ -245,7 +242,7 @@ local function hoe_area(pos, player)
|
|||||||
local res = core.find_nodes_in_area(
|
local res = core.find_nodes_in_area(
|
||||||
{x = pos.x - r, y = pos.y - 1, z = pos.z - r},
|
{x = pos.x - r, y = pos.y - 1, z = pos.z - r},
|
||||||
{x = pos.x + r, y = pos.y + 2, z = pos.z + r},
|
{x = pos.x + r, y = pos.y + 2, z = pos.z + r},
|
||||||
{"group:flora", "default:dry_shrub"})
|
{"group:flora", "group:grass", "group:dry_grass", "default:dry_shrub"})
|
||||||
|
|
||||||
for n = 1, #res do
|
for n = 1, #res do
|
||||||
core.swap_node(res[n], {name = "air"})
|
core.swap_node(res[n], {name = "air"})
|
||||||
|
Reference in New Issue
Block a user