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
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public interface ActionWorldHelper extends ActionCosts {
//if (!Baritone.allowBreakOrPlace) {
// 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 0;