this lets proguard optimize out one more double division

This commit is contained in:
Leijurv 2019-01-11 13:18:31 -08:00
parent 09e94eaa8e
commit bec7f9be96
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -141,7 +141,7 @@ public class MovementTraverse extends Movement {
if (srcDown == Blocks.FLOWING_WATER || srcDown == Blocks.WATER) {
return COST_INF; // this is obviously impossible
}
WC = WC * SNEAK_ONE_BLOCK_COST / WALK_ONE_BLOCK_COST;//since we are sneak backplacing, we are sneaking lol
WC = WC * (SNEAK_ONE_BLOCK_COST / WALK_ONE_BLOCK_COST);//since we are sneak backplacing, we are sneaking lol
return WC + context.placeBlockCost + hardness1 + hardness2;
}
return COST_INF;