[mods/default] Hoe now works on Dirt blocks.

This commit is contained in:
Quentin Bazin 2020-07-20 21:59:24 +02:00
parent 55d2bdab72
commit a214890517

View File

@ -45,8 +45,8 @@ function register_tool(name, material, mining_speed, harvest_capability)
if name == "hoe" then
tool_def.on_item_activated = function(pos, block, player, world, client, server)
if block:string_id() == "default:grass" then
world:set_block_from_str(pos.x, pos.y, pos.z, "default:farmland")
if block:string_id() == "default:grass" or block:string_id() == "default:dirt" then
world:set_block_from_str(pos.x, pos.y, pos.z, "default: farmland")
end
end
elseif name == "shovel" then