File tree Expand file tree Collapse file tree 5 files changed +29
-16
lines changed
Expand file tree Collapse file tree 5 files changed +29
-16
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " mcvcli"
33description = " A command line interface for managing Minecraft servers."
4- version = " 2.4.0 "
4+ version = " 2.4.1 "
55edition = " 2024"
66license = " MIT"
77homepage = " https://github.com/mcjars/mcvcli"
Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments