mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
fixes
This commit is contained in:
parent
48ef6ec360
commit
67316eb5b6
@ -17,7 +17,6 @@ namespace QSB.Events
|
|||||||
{
|
{
|
||||||
var player = PlayerRegistry.CreatePlayer(message.SenderId);
|
var player = PlayerRegistry.CreatePlayer(message.SenderId);
|
||||||
player.Name = message.PlayerName;
|
player.Name = message.PlayerName;
|
||||||
player.IsReady = true;
|
|
||||||
DebugLog.ToAll($"{player.Name} joined!");
|
DebugLog.ToAll($"{player.Name} joined!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,7 +24,6 @@ namespace QSB.Events
|
|||||||
{
|
{
|
||||||
var player = PlayerRegistry.CreatePlayer(PlayerTransformSync.LocalInstance.netId.Value);
|
var player = PlayerRegistry.CreatePlayer(PlayerTransformSync.LocalInstance.netId.Value);
|
||||||
player.Name = message.PlayerName;
|
player.Name = message.PlayerName;
|
||||||
player.IsReady = true;
|
|
||||||
DebugLog.ToAll($"Connected to server as {player.Name}.");
|
DebugLog.ToAll($"Connected to server as {player.Name}.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,11 +48,7 @@ namespace QSB
|
|||||||
public static void HandleFullStateMessage(FullStateMessage message)
|
public static void HandleFullStateMessage(FullStateMessage message)
|
||||||
{
|
{
|
||||||
var player = GetPlayer(message.SenderId) ?? CreatePlayer(message.SenderId);
|
var player = GetPlayer(message.SenderId) ?? CreatePlayer(message.SenderId);
|
||||||
DebugLog.ToConsole($"Player Id {message.SenderId} ----------------", OWML.Common.MessageType.Info);
|
|
||||||
player.Name = message.PlayerName;
|
player.Name = message.PlayerName;
|
||||||
DebugLog.ToConsole($"Name : {player.Name}", OWML.Common.MessageType.Info);
|
|
||||||
player.IsReady = message.IsReady;
|
|
||||||
DebugLog.ToConsole($"IsReady : {player.IsReady}", OWML.Common.MessageType.Info);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TransformSync.TransformSync GetTransformSync(uint id)
|
public static TransformSync.TransformSync GetTransformSync(uint id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user