From 081494426db9b758b4ba8dd9e08726b1afed4d00 Mon Sep 17 00:00:00 2001 From: William278 Date: Mon, 22 Apr 2024 10:21:42 +0100 Subject: [PATCH] fix: off-by-one in BlueMap claim display, close #95 --- .../java/net/william278/huskclaims/hook/BlueMapHook.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/net/william278/huskclaims/hook/BlueMapHook.java b/common/src/main/java/net/william278/huskclaims/hook/BlueMapHook.java index 750b6feb..a0228312 100644 --- a/common/src/main/java/net/william278/huskclaims/hook/BlueMapHook.java +++ b/common/src/main/java/net/william278/huskclaims/hook/BlueMapHook.java @@ -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))