refactor: inline room.fromJSON

This commit is contained in:
cha0s 2019-05-17 05:49:25 -05:00
parent df89cbf51e
commit a29ca6e515

View File

@ -561,8 +561,7 @@ for (let i = 0; i < 5; ++i) {
}
export function createRoom() {
const room = new Room();
room.fromJSON(roomJSON);
const room = new Room(roomJSON);
room.world = new World();
return room;
}