mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/item/storage.rs')
-rw-r--r--src/item/storage.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/item/storage.rs b/src/item/storage.rs
index ec7f219..6064594 100644
--- a/src/item/storage.rs
+++ b/src/item/storage.rs
@@ -65,6 +65,10 @@ where
self.total == 0
}
+ pub fn reserve(&mut self, n: usize) {
+ self.base.reserve(n)
+ }
+
/// get item count of certain element
///
/// ```