Skip to content

Commit

Permalink
block/break_info.go: Fixed incorrect efficiency calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 8, 2024
1 parent 4bd82eb commit 586ac37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/block/break_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func BreakDuration(b world.Block, i item.Stack) time.Duration {
if info.Effective(t) {
eff := t.BaseMiningEfficiency(b)
if e, ok := i.Enchantment(enchantment.Efficiency{}); ok {
breakTime += (enchantment.Efficiency{}).Addend(e.Level())
eff += (enchantment.Efficiency{}).Addend(e.Level())
}
breakTime /= eff
}
Expand Down

0 comments on commit 586ac37

Please sign in to comment.