Fix syncing amount

This commit is contained in:
timokoesters
2020-03-19 17:44:13 +01:00
parent 22652cfa37
commit bb1b3ceabc

View File

@ -207,17 +207,17 @@ pub enum ItemKind {
Consumable { Consumable {
kind: Consumable, kind: Consumable,
effect: Effect, effect: Effect,
#[serde(skip, default = "default_amount")] #[serde(default = "default_amount")]
amount: u32, amount: u32,
}, },
Utility { Utility {
kind: Utility, kind: Utility,
#[serde(skip, default = "default_amount")] #[serde(default = "default_amount")]
amount: u32, amount: u32,
}, },
Ingredient { Ingredient {
kind: Ingredient, kind: Ingredient,
#[serde(skip, default = "default_amount")] #[serde(default = "default_amount")]
amount: u32, amount: u32,
}, },
} }