Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AIOOBE Cleanroom crash #2678

Merged
merged 1 commit into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -333,24 +333,24 @@ public BlockPattern getPattern() {
for (int i = 0; i < lDist + rDist + 1; i++) {
for (int j = 0; j < fDist + bDist + 1; j++) {
if (i == 0 || i == lDist + rDist || j == 0 || j == fDist + bDist) { // all edges
floorLayer[i].append('A'); // floor edge
floorLayer[j].append('A'); // floor edge
for (int k = 0; k < hDist - 1; k++) {
wallLayers.get(k)[i].append('W'); // walls
wallLayers.get(k)[j].append('W'); // walls
}
ceilingLayer[i].append('D'); // ceiling edge
ceilingLayer[j].append('D'); // ceiling edge
} else { // not edges
if (i == lDist && j == fDist) { // very center
floorLayer[i].append('K');
floorLayer[j].append('K');
} else {
floorLayer[i].append('E'); // floor valid blocks
floorLayer[j].append('E'); // floor valid blocks
}
for (int k = 0; k < hDist - 1; k++) {
wallLayers.get(k)[i].append(' ');
wallLayers.get(k)[j].append(' ');
}
if (i == lDist && j == fDist) { // very center
ceilingLayer[i].append('C'); // controller
ceilingLayer[j].append('C'); // controller
} else {
ceilingLayer[i].append('F'); // filter
ceilingLayer[j].append('F'); // filter
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,25 @@ public BlockPattern getPattern() {
floorLayer[i].append('A'); // floor edge
for (int k = 0; k < hDist - 1; k++) {
if ((i == 0 || i == lDist + rDist) && (j == 0 || j == fDist + bDist)) {
wallLayers.get(k)[i].append('A');
wallLayers.get(k)[j].append('A');
} else {
wallLayers.get(k)[i].append('W'); // walls
wallLayers.get(k)[j].append('W'); // walls
}
}
ceilingLayer[i].append('A'); // ceiling edge
ceilingLayer[j].append('A'); // ceiling edge
} else { // not edges
if (i == lDist && j == fDist) { // very center
floorLayer[i].append('B');
floorLayer[j].append('B');
} else {
floorLayer[i].append('B'); // floor valid blocks
floorLayer[j].append('B'); // floor valid blocks
}
for (int k = 0; k < hDist - 1; k++) {
wallLayers.get(k)[i].append('L'); // log or air
wallLayers.get(k)[j].append('L'); // log or air
}
if (i == lDist && j == fDist) { // very center
ceilingLayer[i].append('S'); // controller
ceilingLayer[j].append('S'); // controller
} else {
ceilingLayer[i].append('W'); // grass top
ceilingLayer[j].append('W'); // grass top
}
}
}
Expand Down
Loading