This commit is contained in:
Leijurv 2018-12-24 18:41:16 -08:00
parent c324f11a96
commit bbb73008ac
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -129,8 +129,7 @@ public class MovementAscend extends Movement {
walk += context.jumpPenalty; walk += context.jumpPenalty;
} }
double totalCost = 0; double totalCost = walk;
totalCost += walk;
if (hasToPlace) { if (hasToPlace) {
totalCost += context.placeBlockCost; totalCost += context.placeBlockCost;
} }