Save World on Request

This commit is contained in:
Noah
2022-05-16 00:22:26 +02:00
parent 386ffd12b5
commit c48efb161a
2 changed files with 6 additions and 2 deletions
@@ -260,6 +260,10 @@ public class Client
client.Send(data, data.Length); client.Send(data, data.Length);
} }
public void SaveWorld()
{
Send(new byte[]{9});
}
public void Disconnect() public void Disconnect()
{ {
@@ -317,7 +317,7 @@ public class World : MonoBehaviour
public void SaveButton() public void SaveButton()
{ {
client.SaveWorld();
} }
//return the ID of a block //return the ID of a block