From de76348013959c20dc87b2e630706d49f0113b4d Mon Sep 17 00:00:00 2001 From: Myma <63861212+MymaQc@users.noreply.github.com> Date: Mon, 18 Mar 2024 13:35:13 -0400 Subject: [PATCH] Update firework_behaviour.go --- server/entity/firework_behaviour.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/entity/firework_behaviour.go b/server/entity/firework_behaviour.go index 3d36188d2..3ca6f3f03 100644 --- a/server/entity/firework_behaviour.go +++ b/server/entity/firework_behaviour.go @@ -126,6 +126,9 @@ func (f *FireworkBehaviour) explode(e *Ent) { }) for _, e := range targets { tpos := e.Position() + if pos == tpos { + continue + } dist := pos.Sub(tpos).Len() if dist > 5.0 { // The maximum distance allowed is 5.0 blocks.