Area selection radius fix
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-04-28 13:00:17 -04:00
parent cad9a994d0
commit f1a7f10f50

View File

@ -153,6 +153,15 @@ public class AreaSelection {
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))
.add(
radStart * BlockChunkData.BLOCK_SIZE_MULTIPLIER,