diff options
Diffstat (limited to 'server/src/data/demands.rs')
-rw-r--r-- | server/src/data/demands.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/data/demands.rs b/server/src/data/demands.rs index 176ca232..3f4b839d 100644 --- a/server/src/data/demands.rs +++ b/server/src/data/demands.rs @@ -15,8 +15,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -use super::Demand; -use hurrycurry_protocol::{ItemIndex, Recipe, TileIndex}; +use hurrycurry_protocol::{Demand, ItemIndex, Recipe, TileIndex}; use std::collections::{HashMap, HashSet}; pub fn generate_demands( @@ -79,8 +78,8 @@ pub fn generate_demands( .iter() .filter_map(|(i, o, d)| { producable.get(i).map(|cost| Demand { - from: *i, - to: *o, + input: *i, + output: *o, duration: *d, points: *cost as i64, }) |