From bb1b3ceabce9a3c003cbe0cf9d075a55c8d2744f Mon Sep 17 00:00:00 2001 From: timokoesters Date: Thu, 19 Mar 2020 17:44:13 +0100 Subject: [PATCH] Fix syncing amount --- common/src/comp/inventory/item.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/comp/inventory/item.rs b/common/src/comp/inventory/item.rs index 0b5eb75450..00c35348e3 100644 --- a/common/src/comp/inventory/item.rs +++ b/common/src/comp/inventory/item.rs @@ -207,17 +207,17 @@ pub enum ItemKind { Consumable { kind: Consumable, effect: Effect, - #[serde(skip, default = "default_amount")] + #[serde(default = "default_amount")] amount: u32, }, Utility { kind: Utility, - #[serde(skip, default = "default_amount")] + #[serde(default = "default_amount")] amount: u32, }, Ingredient { kind: Ingredient, - #[serde(skip, default = "default_amount")] + #[serde(default = "default_amount")] amount: u32, }, }