refactor: inline room.fromJSON
This commit is contained in:
parent
df89cbf51e
commit
a29ca6e515
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user