Skip to content

Commit

Permalink
Update firework_behaviour.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MymaQc committed Mar 18, 2024
1 parent 16e850f commit de76348
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/entity/firework_behaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit de76348

Please sign in to comment.