Skip to content

Commit

Permalink
Increase calculated boundaries by one to improve merging in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdevita committed Feb 14, 2021
1 parent 4d7d63d commit 0bc0c7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/kotlin/net/pdevita/creeperheal2/core/Explosion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,13 @@ class Explosion() {
}
}
plugin.debugLogger("Explosion within coords: ${boundary.highX}, ${boundary.highY}, ${boundary.highZ} and ${boundary.lowX}, ${boundary.lowY}, ${boundary.lowZ}")
// Increase boundaries by one
boundary.highX += 1
boundary.highY += 1
boundary.highZ += 1
boundary.lowX -= 1
boundary.lowY -= 1
boundary.lowZ -= 1
return boundary
}

Expand Down

0 comments on commit 0bc0c7b

Please sign in to comment.