Skip to content

Commit

Permalink
Fix resizing 1-wide claims (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Dec 12, 2020
1 parent d126b90 commit 1edd0a9
Showing 1 changed file with 2 additions and 16 deletions.
Expand Up @@ -2285,38 +2285,24 @@ else if (allowedFillBlocks.contains(southBlock.getType()))
if (playerData.lastShovelLocation.getBlockX() == playerData.claimResizing.getLesserBoundaryCorner().getBlockX())
{
newx1 = clickedBlock.getX();
newx2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockX();
}
else
{
newx1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockX();
}

if (playerData.lastShovelLocation.getBlockX() == playerData.claimResizing.getGreaterBoundaryCorner().getBlockX())
{
newx2 = clickedBlock.getX();
}
else
{
newx2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockX();
}

if (playerData.lastShovelLocation.getBlockZ() == playerData.claimResizing.getLesserBoundaryCorner().getBlockZ())
{
newz1 = clickedBlock.getZ();
newz2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ();
}
else
{
newz1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockZ();
}

if (playerData.lastShovelLocation.getBlockZ() == playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ())
{
newz2 = clickedBlock.getZ();
}
else
{
newz2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ();
}

newy1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockY();
newy2 = clickedBlock.getY() - instance.config_claims_claimsExtendIntoGroundDistance;
Expand Down

0 comments on commit 1edd0a9

Please sign in to comment.