From c64785f0ce9c51a892076975cfddb4bb72cd58b8 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 22 Sep 2018 09:34:42 -0700 Subject: [PATCH] don't let a NaN slip through --- src/main/java/baritone/pathing/movement/MovementHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/movement/MovementHelper.java b/src/main/java/baritone/pathing/movement/MovementHelper.java index 2059a5a3..0bde1674 100644 --- a/src/main/java/baritone/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/pathing/movement/MovementHelper.java @@ -322,7 +322,7 @@ public interface MovementHelper extends ActionCosts, Helper { } 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) { + if (strVsBlock <= 0) { return COST_INF; }