Dead Sync and Timescale Bug Fix

This commit is contained in:
brausjonas
2022-05-16 00:41:42 +02:00
parent c48efb161a
commit 2da20b9d79
4 changed files with 20 additions and 8 deletions
+7
View File
@@ -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)
{