diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-04 14:05:15 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-04 14:05:15 +0200 |
| commit | ea1bc7db954030ad5e4b40391e8e0d655b9d7e9a (patch) | |
| tree | b1dd5f3a1602fb17d883df237a248e4f71b792da /src/docker.rs | |
| parent | Config editor, host networking, whitelist RCON (diff) | |
| download | minecraft-ui-ea1bc7db954030ad5e4b40391e8e0d655b9d7e9a.tar.gz minecraft-ui-ea1bc7db954030ad5e4b40391e8e0d655b9d7e9a.zip | |
Diffstat (limited to 'src/docker.rs')
| -rw-r--r-- | src/docker.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/docker.rs b/src/docker.rs index f171d43..fe2232f 100644 --- a/src/docker.rs +++ b/src/docker.rs | |||
| @@ -125,6 +125,7 @@ impl DockerManager { | |||
| 125 | "ENABLE_RCON=true".into(), | 125 | "ENABLE_RCON=true".into(), |
| 126 | format!("RCON_PASSWORD={}", instance.rcon_password), | 126 | format!("RCON_PASSWORD={}", instance.rcon_password), |
| 127 | "RCON_PORT=25575".into(), | 127 | "RCON_PORT=25575".into(), |
| 128 | "JVM_OPTS=-Dfml.queryResult=confirm".into(), | ||
| 128 | format!("MOTD={}", instance.motd), | 129 | format!("MOTD={}", instance.motd), |
| 129 | format!("GAMEMODE={}", instance.gamemode), | 130 | format!("GAMEMODE={}", instance.gamemode), |
| 130 | format!("LEVEL_TYPE={}", instance.level_type), | 131 | format!("LEVEL_TYPE={}", instance.level_type), |
| @@ -137,9 +138,10 @@ impl DockerManager { | |||
| 137 | } | 138 | } |
| 138 | 139 | ||
| 139 | if let Some(ref seed) = instance.world_seed | 140 | if let Some(ref seed) = instance.world_seed |
| 140 | && !seed.is_empty() { | 141 | && !seed.is_empty() |
| 141 | env_strings.push(format!("LEVEL_SEED={seed}")); | 142 | { |
| 142 | } | 143 | env_strings.push(format!("LEVEL_SEED={seed}")); |
| 144 | } | ||
| 143 | 145 | ||
| 144 | let mut exposed_ports: HashMap<String, HashMap<(), ()>> = HashMap::new(); | 146 | let mut exposed_ports: HashMap<String, HashMap<(), ()>> = HashMap::new(); |
| 145 | exposed_ports.insert("25565/tcp".into(), HashMap::new()); | 147 | exposed_ports.insert("25565/tcp".into(), HashMap::new()); |
