Area selection radius fix
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
cad9a994d0
commit
f1a7f10f50
@ -153,6 +153,15 @@ public class AreaSelection {
|
|||||||
increment++;
|
increment++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//loops only break on the iteration where we encounter a barrier, so need to roll the radius values back by 1
|
||||||
|
//in order to not include the blocks that caused the break itself
|
||||||
|
if(radEnd > 1){
|
||||||
|
radEnd--;
|
||||||
|
}
|
||||||
|
if(radStart < 0){
|
||||||
|
radStart++;
|
||||||
|
}
|
||||||
|
|
||||||
Vector3d startPos = new Vector3d(Globals.clientWorldData.convertBlockToRealSpace(chunkPos, blockPos))
|
Vector3d startPos = new Vector3d(Globals.clientWorldData.convertBlockToRealSpace(chunkPos, blockPos))
|
||||||
.add(
|
.add(
|
||||||
radStart * BlockChunkData.BLOCK_SIZE_MULTIPLIER,
|
radStart * BlockChunkData.BLOCK_SIZE_MULTIPLIER,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user