Solving an old Dead-Lock
This commit is contained in:
parent
3d9b031e03
commit
02e43f9eb6
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class BlockFixer {
|
||||||
final int count = dx * dz;
|
final int count = dx * dz;
|
||||||
final int minY = Math.max(start.getY(), level.getMinBuildHeight());
|
final int minY = Math.max(start.getY(), level.getMinBuildHeight());
|
||||||
final int maxY = Math.min(end.getY(), level.getMaxBuildHeight());
|
final int maxY = Math.min(end.getY(), level.getMaxBuildHeight());
|
||||||
IntStream.range(0, count).parallel().forEach(index -> {
|
IntStream.range(0, count).forEach(index -> {
|
||||||
MutableBlockPos POS = new MutableBlockPos();
|
MutableBlockPos POS = new MutableBlockPos();
|
||||||
POS.setX((index % dx) + start.getX());
|
POS.setX((index % dx) + start.getX());
|
||||||
POS.setZ((index / dx) + start.getZ());
|
POS.setZ((index / dx) + start.getZ());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue