mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Use consistent path for saves in Instance
This commit is contained in:
1 parent
f5e558cb2f
commit
0df6701326
1 file changed
+2
-2
@@ -302,7 +302,7 @@ class Instance extends libLink.Link {
|
|||||||
async sendSaveListUpdate() {
|
async sendSaveListUpdate() {
|
||||||
libLink.messages.saveListUpdate.send(this, {
|
libLink.messages.saveListUpdate.send(this, {
|
||||||
instance_id: this.id,
|
instance_id: this.id,
|
||||||
list: await Instance.listSaves(this.server.writePath("saves"), this._loadedSave),
|
list: await Instance.listSaves(this.path("saves"), this._loadedSave),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -828,7 +828,7 @@ class Instance extends libLink.Link {
|
|||||||
|
|
||||||
async listSavesRequestHandler(message) {
|
async listSavesRequestHandler(message) {
|
||||||
return {
|
return {
|
||||||
list: await Instance.listSaves(this.server.writePath("saves"), this._loadedSave),
|
list: await Instance.listSaves(this.path("saves"), this._loadedSave),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user