Skip to content

Commit

Permalink
fix: off-by-one in BlueMap claim display, close #95
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Apr 22, 2024
1 parent f0968a2 commit 0814944
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public void markClaim(@NotNull Claim claim, @NotNull ClaimWorld claimWorld) {
@NotNull
private ShapeMarker getClaimMarker(@NotNull Claim claim, @NotNull ClaimWorld claimWorld, @NotNull String hex) {
final Color color = new Color(hex);
final int x1 = claim.getRegion().getNearCorner().getBlockX();
final int z1 = claim.getRegion().getNearCorner().getBlockZ();
final int x2 = claim.getRegion().getFarCorner().getBlockX();
final int z2 = claim.getRegion().getFarCorner().getBlockZ();
final int x1 = claim.getRegion().getNearCorner().getBlockX() - 1;
final int z1 = claim.getRegion().getNearCorner().getBlockZ() - 1;
final int x2 = claim.getRegion().getFarCorner().getBlockX() + 1;
final int z2 = claim.getRegion().getFarCorner().getBlockZ() + 1;
return ShapeMarker.builder()
.label(claim.getOwnerName(claimWorld, plugin))
.fillColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), 0.5f))
Expand Down

0 comments on commit 0814944

Please sign in to comment.