This commit is contained in:
@ -41,9 +41,9 @@ public class DrillBase implements Drill {
|
||||
}
|
||||
|
||||
private void handleBlock(Block initialBlock, List<BlockPos> history, BlockPos pos, int brokenBlocks) {
|
||||
if(brokenBlocks < getConfig().maxVeinSize) {
|
||||
if (brokenBlocks < getConfig().maxVeinSize) {
|
||||
history.add(pos);
|
||||
if(tryBreakBlock(pos)) {
|
||||
if (tryBreakBlock(pos)) {
|
||||
brokenBlocks++;
|
||||
int finalBrokenBlocks = brokenBlocks;
|
||||
|
||||
@ -58,12 +58,12 @@ public class DrillBase implements Drill {
|
||||
});
|
||||
|
||||
long delay = getConfig().veinAnimationTicks;
|
||||
if(delay <= 0)
|
||||
for(BlockPos newPos : toBreak)
|
||||
if (delay <= 0)
|
||||
for (BlockPos newPos : toBreak)
|
||||
handleBlock(initialBlock, history, newPos, finalBrokenBlocks);
|
||||
else {
|
||||
Scheduler.get().scheduleTask(() -> {
|
||||
for(BlockPos newPos : toBreak)
|
||||
for (BlockPos newPos : toBreak)
|
||||
handleBlock(initialBlock, history, newPos, finalBrokenBlocks);
|
||||
}, delay);
|
||||
}
|
||||
|
Reference in New Issue
Block a user