Skip to content

Commit

Permalink
[mods/default] Fixed a bug causing swords to mine faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 17, 2020
1 parent a4dfd7a commit f359169
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mods/default/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ function register_tool(name, material, mining_speed, harvest_capability)
max_stack_size = 1,
}

if mining_speed then
tool_def.mining_speed = mining_speed
end
if name ~= "sword" then
if mining_speed then
tool_def.mining_speed = mining_speed
end

if harvest_capability then
tool_def.harvest_capability = harvest_capability
if harvest_capability then
tool_def.harvest_capability = harvest_capability
end
end

if name == "hoe" then
Expand Down

0 comments on commit f359169

Please sign in to comment.