Oops, send the restore packet!

This commit is contained in:
zontreck 2024-07-02 18:04:51 -07:00
parent 5039722d90
commit 27fb1861c0

View file

@ -151,6 +151,12 @@ class SnapshotListState extends State<SnapshotListPage> {
if (result == null) return;
C2SRequestWorldRestore rwr = C2SRequestWorldRestore();
rwr.snapshot = filename;
settings.client!.send(rwr, true);
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(
"Restore has been requested, follow Discord for further updates")));
},
icon: Icon(Icons.restore),
),