@colyseus/core
Advanced tools
Comparing version 0.15.3 to 0.15.4
@@ -48,9 +48,8 @@ var __create = Object.create; | ||
for (const [roomId, value] of roomHistoryList) { | ||
let recreatedRoom; | ||
const roomHistory = JSON.parse(value); | ||
debugDevMode("restoring room %s (%s)", roomHistory.roomName, roomId); | ||
const recreatedRoomListing = await (0, import_MatchMaker.handleCreateRoom)(roomHistory.roomName, roomHistory.clientOptions, roomId); | ||
const recreatedRoom = (0, import_MatchMaker.getRoomById)(recreatedRoomListing.roomId); | ||
console.debug(`\u{1F504} room '${roomId}' has been restored.`); | ||
if (roomHistory.hasOwnProperty("state")) { | ||
recreatedRoom = (0, import_MatchMaker.getRoomById)(recreatedRoomListing.roomId); | ||
recreatedRoom.state.decode(roomHistory.state); | ||
@@ -57,0 +56,0 @@ recreatedRoom.setState(recreatedRoom.state.clone()); |
{ | ||
"name": "@colyseus/core", | ||
"version": "0.15.3", | ||
"version": "0.15.4", | ||
"description": "Multiplayer Framework for Node.js.", | ||
@@ -49,3 +49,3 @@ "input": "./src/index.ts", | ||
}, | ||
"gitHead": "cc90da8c921231fd50ac776f8c15db670dfbc299" | ||
"gitHead": "3ddcf14da676cee1ea1612a990371587aceaf1a0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
596236
6869