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() { export function createRoom() {
const room = new Room(); const room = new Room(roomJSON);
room.fromJSON(roomJSON);
room.world = new World(); room.world = new World();
return room; return room;
} }