fix: size matters

This commit is contained in:
cha0s 2021-01-18 07:57:56 -06:00
parent 68d826bc70
commit c42ed8e4fd

View File

@ -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) {