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
+2 -2
View File
@@ -276,12 +276,12 @@ public class World : MonoBehaviour
private void OnApplicationQuit()
{
//SaveWorld();
SaveWorld();
server.Disconnect();
}
private void SaveWorld()
public void SaveWorld()
{
StreamWriter writer = new StreamWriter(Application.dataPath + "\\save.world", false);
for (int xChunk = 0; xChunk < worldSize; xChunk++)