mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-21 13:48:21 -05:00
fix: removing players from world
This commit is contained in:
parent
2b1c55d030
commit
226a85e054
@ -145,9 +145,9 @@ namespace Minecraft_Realms_Emulator.Controllers
|
||||
|
||||
var players = world.Players.ToList();
|
||||
|
||||
var playerIndex = world.Players.FindIndex(p => p.Uuid == uuid);
|
||||
var player = _context.Players.Where(p => p.World.Id == wId).FirstOrDefault(p => p.Uuid == uuid);
|
||||
|
||||
world.Players.RemoveAt(playerIndex);
|
||||
_context.Players.Remove(player);
|
||||
|
||||
var invite = await _context.Invites.FirstOrDefaultAsync(i => i.RecipeintUUID == uuid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user