Skip to content

Commit

Permalink
item/bow.go: Fix incorrect interface for punch enchantment (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasciam authored Oct 31, 2024
1 parent 4bd82eb commit 4acc3c3
Showing 1 changed file with 1 addition and 1 deletion.
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 4acc3c3

Please sign in to comment.