misc fixes

This commit is contained in:
Leijurv
2018-09-23 11:37:39 -07:00
parent 53590a96b9
commit 5ca5fdf777
6 changed files with 24 additions and 6 deletions

View File

@@ -360,6 +360,9 @@ public interface MovementHelper extends ActionCosts, Helper {
if (avoidBreaking(x, y, z, state)) {
return COST_INF;
}
if (block instanceof BlockLiquid) {
return COST_INF;
}
double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1; // TODO see if this is still necessary. it's from MineBot when we wanted to penalize breaking its crafting table
double strVsBlock = context.getToolSet().getStrVsBlock(state);
if (strVsBlock <= 0) {