From 9bc006dee101df9a6bdc126622b28d87b803dbbf Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Thu, 1 Aug 2019 09:13:34 +0100 Subject: [PATCH] Add a few extra items to the inventory by default --- common/src/comp/inventory/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/comp/inventory/mod.rs b/common/src/comp/inventory/mod.rs index 21602ff418..94ed955afb 100644 --- a/common/src/comp/inventory/mod.rs +++ b/common/src/comp/inventory/mod.rs @@ -57,12 +57,12 @@ impl Inventory { impl Default for Inventory { fn default() -> Inventory { let mut this = Inventory { - slots: vec![None; 8], + slots: vec![None; 24], }; - this.insert(Item::default()); - this.insert(Item::default()); - this.insert(Item::default()); + for _ in 0..18 { + this.insert(Item::default()); + } this }