Dead Sync and Timescale Bug Fix
This commit is contained in:
1 parent
c48efb161a
commit
2da20b9d79
4 files changed
+20
-8
No files matched your search
@@ -47,6 +47,7 @@ public class Server
|
||||
//[0] = 7: player position update
|
||||
//[0] = 8: player rotation update
|
||||
//[0] = 9: Save the World
|
||||
//[0] = 10: Player died
|
||||
|
||||
private void Receive()
|
||||
{
|
||||
@@ -249,6 +250,12 @@ public class Server
|
||||
{
|
||||
world.SaveWorld();
|
||||
}
|
||||
|
||||
//player died
|
||||
if (data[0] == 10)
|
||||
{
|
||||
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died!");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user