From 3eb28f39cbc8043ccd6f41024981c0ce90d42163 Mon Sep 17 00:00:00 2001 From: Brady Date: Sat, 11 Aug 2018 20:49:00 -0500 Subject: [PATCH] Fix integer division in floating point context --- src/main/java/baritone/bot/pathing/movement/ActionCosts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/movement/ActionCosts.java b/src/main/java/baritone/bot/pathing/movement/ActionCosts.java index 793f7186..fcad68df 100644 --- a/src/main/java/baritone/bot/pathing/movement/ActionCosts.java +++ b/src/main/java/baritone/bot/pathing/movement/ActionCosts.java @@ -26,7 +26,7 @@ public interface ActionCosts extends ActionCostsButOnlyTheOnesThatMakeMickeyDieI double WALK_ONE_IN_WATER_COST = 20 / 2.2; double JUMP_ONE_BLOCK_COST = 5.72854;//see below calculation for fall. 1.25 blocks double LADDER_UP_ONE_COST = 20 / 2.35; - double LADDER_DOWN_ONE_COST = 20 / 3; + double LADDER_DOWN_ONE_COST = 20 / 3.0; double SNEAK_ONE_BLOCK_COST = 20 / 1.3; double SPRINT_ONE_BLOCK_COST = 20 / 5.612; /**