Skip to content

Commit

Permalink
Update server/block/explosion.go
Browse files Browse the repository at this point in the history
Co-authored-by: Raptor <[email protected]>
  • Loading branch information
Flonja and T14Raptor authored May 4, 2024
1 parent e4bd51a commit 8f957d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/block/explosion.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (c ExplosionConfig) Explode(w *world.World, explosionPos mgl64.Vec3) {
continue
}
dist := pos.Sub(explosionPos).Len()
if dist/d > 1 || dist != 0 {
if dist > d || dist == 0 {
continue
}
if explodable, ok := e.(ExplodableEntity); ok {
Expand Down

0 comments on commit 8f957d8

Please sign in to comment.