Fix lobby

This commit is contained in:
RisaDev
2024-08-03 22:28:10 +03:00
parent 68087ec61c
commit f96b21001f

View File

@@ -218,16 +218,13 @@ public class ObjectManager(
} }
//c+ custom //c+ custom
[Obsolete("To be updated for DT")]
private unsafe bool AddLobbyCharacter() private unsafe bool AddLobbyCharacter()
{ {
return false;
/*
var agent = AgentLobby.Instance(); var agent = AgentLobby.Instance();
if (agent == null || agent->LobbyData.CharaSelectEntries.LongCount() == 0) if (agent == null || agent->LobbyData.CharaSelectEntries.LongCount() == 0)
return false; return false;
var chara = agent->LobbyData.CharaSelectEntries.Get((ulong)agent->SelectedCharacterContentId).Value; var chara = agent->LobbyData.CharaSelectEntries[(long)agent->SelectedCharacterContentId].Value;
if (chara == null) if (chara == null)
return false; return false;
@@ -238,6 +235,6 @@ public class ObjectManager(
HandleIdentifier(actors.CreatePlayer(new ByteString(chara->Name), chara->HomeWorldId), actor); HandleIdentifier(actors.CreatePlayer(new ByteString(chara->Name), chara->HomeWorldId), actor);
return true;*/ return true;
} }
} }