Skip to content

Commit

Permalink
Try to recover gracefully?
Browse files Browse the repository at this point in the history
  • Loading branch information
denoflionsx committed Jun 17, 2021
1 parent ec452fb commit a818e08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "OotOnline",
"version": "3.0.64",
"version": "3.0.65",
"description": "Template base for making [ModLoader64](https://github.com/hylian-modding/ModLoader64) Plugins.",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/OotOnline/OotOnlineServer.ts
Expand Up @@ -193,6 +193,7 @@ export default class OotOnlineServer {
if (typeof storage.worlds[packet.player.data.world] === 'undefined'){
this.ModLoader.logger.info(`Creating world ${packet.player.data.world} for lobby ${packet.lobby}.`);
storage.worlds[packet.player.data.world] = new OotOnlineSave_Server();
storage.worlds[packet.player.data.world].save = JSON.parse(packet.save.toString());
}
let world = storage.worlds[packet.player.data.world];
storage.saveManager.mergeSave(packet.save, world.save, ProxySide.SERVER);
Expand Down
4 changes: 2 additions & 2 deletions src/OotOnline/package.json
@@ -1,7 +1,7 @@
{
"name": "OotOnline",
"version": "3.0.64",
"date": "Thu, 17 Jun 2021 05:54:49 GMT",
"version": "3.0.65",
"date": "Thu, 17 Jun 2021 06:30:06 GMT",
"description": "",
"main": "OotOnline.js",
"author": "denoflions",
Expand Down
2 changes: 1 addition & 1 deletion update.json
@@ -1,5 +1,5 @@
{
"version": "3.0.64",
"version": "3.0.65",
"url": "https://repo.modloader64.com/mods/Ooto/update/OotOnline.pak",
"devurl": "https://repo.modloader64.com/mods/Ooto/dev/OotOnline.pak"
}

0 comments on commit a818e08

Please sign in to comment.