From 4acc3c3edd7712806cf473f857b4ff680343dd44 Mon Sep 17 00:00:00 2001 From: Darya Markova <122279000+Dasciam@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:47:53 +0500 Subject: [PATCH] item/bow.go: Fix incorrect interface for punch enchantment (#927) --- server/item/bow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/item/bow.go b/server/item/bow.go index 5d8a8cbe7..9acc9e2c4 100644 --- a/server/item/bow.go +++ b/server/item/bow.go @@ -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 {