fix formatting

Signed-off-by: scorbett123 <sam@corbettchocolates.com>
This commit is contained in:
scorbett123 2020-10-14 19:56:09 +01:00
parent 612510550f
commit 39cfebeb34
No known key found for this signature in database
GPG Key ID: C16B9466EBFC2DE7
2 changed files with 6 additions and 6 deletions

View File

@ -562,9 +562,9 @@ public interface MovementHelper extends ActionCosts, Helper {
enum PlaceResult { enum PlaceResult {
READY_TO_PLACE, ATTEMPTING, NO_OPTION; READY_TO_PLACE, ATTEMPTING, NO_OPTION;
} }
public static boolean isTransparent(Block b) { static boolean isTransparent(Block b) {
return b== Blocks.AIR || return b == Blocks.AIR ||
b == Blocks.FLOWING_LAVA || b == Blocks.FLOWING_LAVA ||
b == Blocks.FLOWING_WATER || b == Blocks.FLOWING_WATER ||
b == Blocks.WATER; b == Blocks.WATER;

View File

@ -40,7 +40,6 @@ import net.minecraft.entity.item.EntityItem;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -411,10 +410,11 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
.filter(pos -> MineProcess.plausibleToBreak(ctx, pos)) .filter(pos -> MineProcess.plausibleToBreak(ctx, pos))
.filter(pos -> { .filter(pos -> {
if (Baritone.settings().allowOnlyExposedOres.value) if (Baritone.settings().allowOnlyExposedOres.value) {
return isNextToAir(ctx, pos); return isNextToAir(ctx, pos);
else } else {
return true; return true;
}
}) })
.filter(pos -> !blacklist.contains(pos)) .filter(pos -> !blacklist.contains(pos))
@ -434,7 +434,7 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
for (int dy = -radius; dy <= radius; dy++) { for (int dy = -radius; dy <= radius; dy++) {
for (int dz = -radius; dz <= radius; dz++) { for (int dz = -radius; dz <= radius; dz++) {
if (Math.abs(dx) + Math.abs(dy) + Math.abs(dz) <= radius if (Math.abs(dx) + Math.abs(dy) + Math.abs(dz) <= radius
&& MovementHelper.isTransparent(ctx.getBlock(pos.getX()+dx, pos.getY()+dy, pos.getZ()+dz))) { && MovementHelper.isTransparent(ctx.getBlock(pos.getX() + dx, pos.getY() + dy, pos.getZ() + dz))) {
return true; return true;
} }
} }