Fixes
This commit is contained in:
parent
bb3a81ebb0
commit
4073e0a32c
11 changed files with 61 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue