[mods/default] Hoe now works on Dirt blocks.
This commit is contained in:
parent
55d2bdab72
commit
a214890517
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user