Save World on Request

This commit is contained in:
Noah committed 2022-05-16 00:22:26 +02:00
1 parent 386ffd12b5
commit c48efb161a
2 files changed
+6 -2

No files matched your search

@@ -259,8 +259,12 @@ public class Client
{
client.Send(data, data.Length);
}
public void SaveWorld()
{
Send(new byte[]{9});
}
public void Disconnect()
{
Send(new byte[] { 4 });
@@ -317,7 +317,7 @@ public class World : MonoBehaviour
public void SaveButton()
{
client.SaveWorld();
}
//return the ID of a block