Skip to content

Commit efe056d

Browse files
committed
support more than 64GB ram
1 parent 7129920 commit efe056d

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

Cargo.lock

Lines changed: 20 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mcvcli"
33
description = "A command line interface for managing Minecraft servers."
4-
version = "2.4.0"
4+
version = "2.4.1"
55
edition = "2024"
66
license = "MIT"
77
homepage = "https://github.com/mcjars/mcvcli"

src/commands/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub async fn config(matches: &ArgMatches) -> i32 {
2222
config::Config::new(".mcvcli.json", false)
2323
};
2424

25-
let ram = matches.get_one::<u16>("ram");
25+
let ram = matches.get_one::<u32>("ram");
2626
let stop_command = matches.get_one::<String>("stop_command");
2727
let flags = matches.get_one::<String>("flags");
2828
let args = matches.get_one::<String>("args");

src/commands/init.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ pub async fn init(
269269
versions.get(server_version).unwrap().java
270270
};
271271

272-
let ram_mb = if let Some(ram) = matches.get_one::<u16>("ram") {
272+
let ram_mb = if let Some(ram) = matches.get_one::<u32>("ram") {
273273
*ram
274274
} else {
275-
Input::<u16>::with_theme(&ColorfulTheme::default())
275+
Input::<u32>::with_theme(&ColorfulTheme::default())
276276
.with_prompt("RAM (MB)")
277277
.default(2048)
278278
.interact()
@@ -423,10 +423,10 @@ pub async fn init(
423423

424424
let modpack_version = &versions[modpack_version];
425425

426-
let ram_mb = if let Some(ram) = matches.get_one::<u16>("ram") {
426+
let ram_mb = if let Some(ram) = matches.get_one::<u32>("ram") {
427427
*ram
428428
} else {
429-
Input::<u16>::with_theme(&ColorfulTheme::default())
429+
Input::<u32>::with_theme(&ColorfulTheme::default())
430430
.with_prompt("RAM (MB)")
431431
.default(2048)
432432
.interact()
@@ -533,10 +533,10 @@ pub async fn init(
533533
*java_versions.iter().rev().nth(java_version).unwrap()
534534
};
535535

536-
let ram_mb = if let Some(ram) = matches.get_one::<u16>("ram") {
536+
let ram_mb = if let Some(ram) = matches.get_one::<u32>("ram") {
537537
*ram
538538
} else {
539-
Input::<u16>::with_theme(&ColorfulTheme::default())
539+
Input::<u32>::with_theme(&ColorfulTheme::default())
540540
.with_prompt("RAM (MB)")
541541
.default(2048)
542542
.interact()

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct Config {
2222
pub modpack_version: Option<String>,
2323

2424
#[serde(rename = "ramMB")]
25-
pub ram_mb: u16,
25+
pub ram_mb: u32,
2626

2727
pub java_version: u8,
2828

0 commit comments

Comments
 (0)