Fix resizing 1-wide claims (#1148)
This commit is contained in:
parent
d126b90ce9
commit
1edd0a921e
|
|
@ -2285,38 +2285,24 @@ class PlayerEventHandler implements Listener
|
||||||
if (playerData.lastShovelLocation.getBlockX() == playerData.claimResizing.getLesserBoundaryCorner().getBlockX())
|
if (playerData.lastShovelLocation.getBlockX() == playerData.claimResizing.getLesserBoundaryCorner().getBlockX())
|
||||||
{
|
{
|
||||||
newx1 = clickedBlock.getX();
|
newx1 = clickedBlock.getX();
|
||||||
|
newx2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockX();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newx1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockX();
|
newx1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockX();
|
||||||
}
|
|
||||||
|
|
||||||
if (playerData.lastShovelLocation.getBlockX() == playerData.claimResizing.getGreaterBoundaryCorner().getBlockX())
|
|
||||||
{
|
|
||||||
newx2 = clickedBlock.getX();
|
newx2 = clickedBlock.getX();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
newx2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockX();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerData.lastShovelLocation.getBlockZ() == playerData.claimResizing.getLesserBoundaryCorner().getBlockZ())
|
if (playerData.lastShovelLocation.getBlockZ() == playerData.claimResizing.getLesserBoundaryCorner().getBlockZ())
|
||||||
{
|
{
|
||||||
newz1 = clickedBlock.getZ();
|
newz1 = clickedBlock.getZ();
|
||||||
|
newz2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newz1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockZ();
|
newz1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockZ();
|
||||||
}
|
|
||||||
|
|
||||||
if (playerData.lastShovelLocation.getBlockZ() == playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ())
|
|
||||||
{
|
|
||||||
newz2 = clickedBlock.getZ();
|
newz2 = clickedBlock.getZ();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
newz2 = playerData.claimResizing.getGreaterBoundaryCorner().getBlockZ();
|
|
||||||
}
|
|
||||||
|
|
||||||
newy1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockY();
|
newy1 = playerData.claimResizing.getLesserBoundaryCorner().getBlockY();
|
||||||
newy2 = clickedBlock.getY() - instance.config_claims_claimsExtendIntoGroundDistance;
|
newy2 = clickedBlock.getY() - instance.config_claims_claimsExtendIntoGroundDistance;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user