diff --git a/packages/topdown/src/resources/room.js b/packages/topdown/src/resources/room.js index 8c25cc3..0094d39 100644 --- a/packages/topdown/src/resources/room.js +++ b/packages/topdown/src/resources/room.js @@ -86,12 +86,12 @@ export default (latus) => class Room extends decorate(JsonResource) { } load({layersInstance, size} = {}) { - if (layersInstance) { - this.setLayers(layersInstance); - } if (size) { this.size = size; } + if (layersInstance) { + this.setLayers(layersInstance); + } } onEntityAddedToRoom(entity) {