diff --git a/src/stores/HuntOptimizerStore.ts b/src/stores/HuntOptimizerStore.ts index 15c90ce5..f8ebdc76 100644 --- a/src/stores/HuntOptimizerStore.ts +++ b/src/stores/HuntOptimizerStore.ts @@ -1,4 +1,4 @@ -import { Solve } from 'javascript-lp-solver'; +import solver from 'javascript-lp-solver'; import { observable } from "mobx"; import { Difficulties, Item, NpcType, SectionIds } from "../domain"; import { huntMethodStore } from "./HuntMethodStore"; @@ -61,7 +61,7 @@ class HuntOptimizerStore { } } - const result = Solve({ + const result = solver.Solve({ optimize: 'time', opType: 'min', constraints,