Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 8, 2024
2 parents 586ac37 + c9a2a22 commit 177002b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -71,7 +71,7 @@ func (Bow) Release(releaser Releaser, duration time.Duration, ctx *UseContext) {
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 177002b

Please sign in to comment.