make codacy happy
This commit is contained in:
parent
bf450b7d68
commit
2953e2c522
@ -154,10 +154,8 @@ public class CalculationContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public double breakCostMultiplierAt(int x, int y, int z, IBlockState current) {
|
public double breakCostMultiplierAt(int x, int y, int z, IBlockState current) {
|
||||||
if (!allowBreak) {
|
if (!allowBreak && !allowBreakAnyway.contains(current.getBlock())) {
|
||||||
if (!allowBreakAnyway.contains(current.getBlock())) {
|
return COST_INF;
|
||||||
return COST_INF;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (isPossiblyProtected(x, y, z)) {
|
if (isPossiblyProtected(x, y, z)) {
|
||||||
return COST_INF;
|
return COST_INF;
|
||||||
|
@ -947,12 +947,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double breakCostMultiplierAt(int x, int y, int z, IBlockState current) {
|
public double breakCostMultiplierAt(int x, int y, int z, IBlockState current) {
|
||||||
if (!allowBreak) {
|
if ((!allowBreak && !allowBreakAnyway.contains(current.getBlock())) || isPossiblyProtected(x, y, z)) {
|
||||||
if (!allowBreakAnyway.contains(current.getBlock())) {
|
|
||||||
return COST_INF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isPossiblyProtected(x, y, z)) {
|
|
||||||
return COST_INF;
|
return COST_INF;
|
||||||
}
|
}
|
||||||
IBlockState sch = getSchematic(x, y, z, current);
|
IBlockState sch = getSchematic(x, y, z, current);
|
||||||
|
Loading…
Reference in New Issue
Block a user