This commit is contained in:
paulevsGitch 2020-10-26 00:34:04 +03:00
parent bb3a81ebb0
commit 4073e0a32c
11 changed files with 61 additions and 3 deletions

View file

@ -154,7 +154,7 @@ public class BlocksHelper {
Set<BlockPos> remove = Sets.newHashSet();
ends.add(POS.toImmutable());
while (!ends.isEmpty()) {
for (int i = 0; i < 128 && !ends.isEmpty(); i++) {
ends.forEach((pos) -> {
setWithoutUpdate(world, pos, AIR);
for (Direction dir: HORIZONTAL) {
@ -169,8 +169,8 @@ public class BlocksHelper {
}
remove.add(pos);
});
ends.removeAll(remove);
ends.addAll(add);
ends.removeAll(remove);
remove.clear();
add.clear();
}