mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-06 02:32:28 +00:00
Set user locations when creating a fake room
This commit is contained in:
parent
bd2aff74af
commit
2ace4dc101
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ public class RoomVisualizerController : ControllerBase
|
|||
#else
|
||||
List<User> users = await this.database.Users.OrderByDescending(_ => EF.Functions.Random()).Take(2).ToListAsync();
|
||||
RoomHelper.CreateRoom(users, GameVersion.LittleBigPlanet2);
|
||||
|
||||
foreach (User user in users)
|
||||
{
|
||||
MatchHelper.SetUserLocation(user.UserId, "127.0.0.1");
|
||||
}
|
||||
return this.Redirect("/debug/roomVisualizer");
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue