fixed the marker bug (#139)

This commit is contained in:
AmazingAlek 2020-08-08 20:59:58 +02:00 committed by GitHub
parent f2d26e4b05
commit fdb638054e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,6 @@ namespace QSB.Events
private void OnClientReceiveMessage(EventMessage message)
{
var player = PlayerRegistry.GetPlayer(message.SenderId);
player.IsReady = true;
if (message.SenderId == PlayerRegistry.LocalPlayer.NetId)
{
return;

View File

@ -48,7 +48,6 @@ namespace QSB.Events
{
var player = PlayerRegistry.CreatePlayer(message.SenderId);
player.Name = message.PlayerName;
player.IsReady = true;
DebugLog.ToAll(message.PlayerName, "joined!");
}
}

View File

@ -17,7 +17,7 @@ namespace QSB
public QSBTool Translator => GetToolByType(ToolType.Translator);
public QSBTool ProbeLauncher => GetToolByType(ToolType.ProbeLauncher);
public string Name { get; set; }
public bool IsReady { get; set; }
public bool IsReady => Body != null;
public State State { get; private set; }
public PlayerInfo(uint id)