mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Fix room host not being set
This commit is contained in:
20
osu.Game/Screens/Multi/Components/CreateRoomOverlay.cs
Normal file
20
osu.Game/Screens/Multi/Components/CreateRoomOverlay.cs
Normal file
@ -0,0 +1,20 @@
|
||||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Online.API;
|
||||
|
||||
namespace osu.Game.Screens.Multi.Components
|
||||
{
|
||||
public class CreateRoomOverlay : RoomSettingsOverlay
|
||||
{
|
||||
[Resolved]
|
||||
private APIAccess api { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Room.Host.Value = api.LocalUser;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user