Manually Save

This commit is contained in:
Noah
2022-05-16 00:16:46 +02:00
parent 46b68c71c9
commit 768f259d24
6 changed files with 852 additions and 7 deletions
+7
View File
@@ -46,6 +46,7 @@ public class Server
//[0] = 6: player ready
//[0] = 7: player position update
//[0] = 8: player rotation update
//[0] = 9: Save the World
private void Receive()
{
@@ -242,6 +243,12 @@ public class Server
}
}
}
//Save the World
if (data[0] == 9)
{
world.SaveWorld();
}
}
catch (Exception e)
{