Fix spectator not working
This commit is contained in:
parent
09dc1ffb76
commit
f66c867d17
1 changed files with 2 additions and 0 deletions
|
@ -20,11 +20,13 @@ export default class SpectatorManager {
|
||||||
let spectateStream:DataStream;
|
let spectateStream:DataStream;
|
||||||
if (userToSpectate.spectatorStream === undefined) {
|
if (userToSpectate.spectatorStream === undefined) {
|
||||||
user.spectatorStream = spectateStream = userToSpectate.spectatorStream = this.shared.streams.CreateStream(`spectator:${userToSpectate.username}`);
|
user.spectatorStream = spectateStream = userToSpectate.spectatorStream = this.shared.streams.CreateStream(`spectator:${userToSpectate.username}`);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
user.spectatorStream = spectateStream = userToSpectate.spectatorStream;
|
user.spectatorStream = spectateStream = userToSpectate.spectatorStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
user.spectatingUser = userToSpectate;
|
user.spectatingUser = userToSpectate;
|
||||||
|
spectateStream.AddUser(user);
|
||||||
|
|
||||||
let osuPacketWriter = osu.Bancho.Writer();
|
let osuPacketWriter = osu.Bancho.Writer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue