Save World on Request
This commit is contained in:
1 parent
386ffd12b5
commit
c48efb161a
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user