Add default gamemode to configuration
This commit is contained in:
1 parent
42bc84b23c
commit
02337adbdf
3 files changed
+12
-4
No files matched your search
@@ -131,8 +131,12 @@ impl Server {
|
||||
0,
|
||||
"minecraft:overworld".into(),
|
||||
0, // seed
|
||||
GameMode::Survival.to_byte() as u8,
|
||||
GameMode::Survival.to_byte(),
|
||||
match self.base_config.default_gamemode {
|
||||
GameMode::Undefined => GameMode::Survival,
|
||||
game_mode => game_mode,
|
||||
}
|
||||
.to_byte() as u8,
|
||||
self.base_config.default_gamemode.to_byte(),
|
||||
false,
|
||||
false,
|
||||
false, // deth loc
|
||||
|
||||
Reference in new issue
Block a user