Compare commits

...

2 Commits

Author SHA1 Message Date
6cb43fcaa3 fix: force delete server container on realm deletion 2024-12-14 14:06:30 +01:00
27a5d20888 fix: uninitialized worlds 2024-12-14 13:52:45 +01:00
3 changed files with 13 additions and 13 deletions

View File

@ -73,8 +73,8 @@ namespace Minecraft_Realms_Emulator.Modes.External
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,
@ -177,8 +177,8 @@ namespace Minecraft_Realms_Emulator.Modes.External
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,
@ -333,8 +333,8 @@ namespace Minecraft_Realms_Emulator.Modes.External
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,

View File

@ -76,8 +76,8 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,
@ -180,8 +180,8 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,
@ -336,8 +336,8 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
OwnerUUID = world.OwnerUUID,
Name = world.Name,
Motd = world.Motd,
GameMode = activeSlot.GameMode,
IsHardcore = activeSlot.Difficulty == 3,
GameMode = activeSlot?.GameMode ?? 0,
IsHardcore = activeSlot?.Difficulty == 3,
State = world.State,
WorldType = world.WorldType,
MaxPlayers = world.MaxPlayers,

View File

@ -68,7 +68,7 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers
ProcessStartInfo serverProcessInfo = new();
serverProcessInfo.FileName = "docker";
serverProcessInfo.Arguments = $"container rm realm-server-{world.Id}";
serverProcessInfo.Arguments = $"container rm -f realm-server-{world.Id}";
Process serverProcess = new();
serverProcess.StartInfo = serverProcessInfo;