Fix another block constant check

This commit is contained in:
Brady 2018-08-02 10:57:11 -07:00
parent 1bfabdf66b
commit e7fcd32440
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -128,7 +128,7 @@ public interface ActionWorldHelper extends ActionCosts {
//if (!Baritone.allowBreakOrPlace) { //if (!Baritone.allowBreakOrPlace) {
// return COST_INF; // return COST_INF;
//} //}
double m = Block.getBlockFromName("minecraft:crafting_table").equals(block) ? 10 : 1; double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1;
return m / ts.getStrVsBlock(block, position) + BREAK_ONE_BLOCK_ADD; return m / ts.getStrVsBlock(block, position) + BREAK_ONE_BLOCK_ADD;
} }
return 0; return 0;