Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into world-overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 8, 2024
2 parents d73d883 + 177002b commit d595598
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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
2 changes: 1 addition & 1 deletion server/block/ender_chest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type EnderChest struct {

// NewEnderChest creates a new initialised ender chest.
func NewEnderChest() EnderChest {
return EnderChest{}
return EnderChest{viewers: &atomic.Int64{}}
}

// BreakInfo ...
Expand Down
2 changes: 1 addition & 1 deletion server/item/bow.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (Bow) Release(releaser Releaser, tx *world.Tx, ctx *UseContext, duration ti
if f, ok := enchant.Type().(interface{ BurnDuration() time.Duration }); ok {
burnDuration = f.BurnDuration()
}
if _, ok := enchant.Type().(interface{ PunchMultiplier(int, float64) float64 }); ok {
if _, ok := enchant.Type().(interface{ KnockBackMultiplier() float64 }); ok {
punchLevel = enchant.Level()
}
if p, ok := enchant.Type().(interface{ PowerDamage(int) float64 }); ok {
Expand Down

0 comments on commit d595598

Please sign in to comment.