Skip to content

Commit bf8ed2f

Browse files
fix: potential solution for #315
1 parent 69d9408 commit bf8ed2f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [21.6.3]
2+
3+
### Fixed
4+
5+
- Potential crash when rendering blocks that are broken.
6+
17
## [21.6.2]
28

39
### Fixed

common/src/main/java/pro/mikey/xray/core/OutlineRender.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ public static void renderBlocks(PoseStack poseStack) {
8484

8585
var opacity = 1F;
8686

87-
for (var blockProps : blocksWithProps) {
87+
// More concurrent modification exceptions can happen here, so we clone the list
88+
var blockPropsClone = new ArrayList<>(blocksWithProps);
89+
90+
for (var blockProps : blockPropsClone) {
8891
if (blockProps == null) {
8992
continue;
9093
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ parchment_minecraft_version=1.21.4
1111
parchment_mappings_version=2025.03.23
1212

1313
mod_id=xray
14-
mod_version=21.6.2
14+
mod_version=21.6.3
1515
minecraft_version=1.21.6
1616
minecraft_version_range=[%base],1.21.9
1717

0 commit comments

Comments
 (0)