From e7fcd324404ac2ffc18c83d469f067c7874eb1f6 Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 2 Aug 2018 10:57:11 -0700 Subject: [PATCH] Fix another block constant check --- .../java/baritone/bot/pathing/action/ActionWorldHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/action/ActionWorldHelper.java b/src/main/java/baritone/bot/pathing/action/ActionWorldHelper.java index 574dec07..6d9351ae 100644 --- a/src/main/java/baritone/bot/pathing/action/ActionWorldHelper.java +++ b/src/main/java/baritone/bot/pathing/action/ActionWorldHelper.java @@ -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;