소스 검색

Fix ownerless objects not spawning

tags/v0.1.0
Fen Dweller 5 년 전
부모
커밋
f748e3c41b
2개의 변경된 파일12개의 추가작업 그리고 7개의 파일을 삭제
  1. +12
    -5
      media/attribution.js
  2. +0
    -2
      presets/cities.js

+ 12
- 5
media/attribution.js 파일 보기

@@ -11383,10 +11383,15 @@ function ownersOf(file) {
function ownersOfFull(file) {
const result = [];
if (attribution.files[file]) {
attribution.files[file].owners.forEach(owner => {
result.push(attributionData.people[owner]);
});
return result;
if (attribution.files[file].owners) {
attribution.files[file].owners.forEach(owner => {
result.push(attributionData.people[owner]);
});
return result;
}
else {
return [];
}
}
else {
const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => {
@@ -11394,8 +11399,10 @@ function ownersOfFull(file) {
})];

if (found === undefined || found.owners === undefined) {
if (found === undefined) {
return undefined;
} else if (found.owners === undefined) {
return [];
} else {
found.owners.forEach(owner => {
result.push(attributionData.people[owner]);


+ 0
- 2
presets/cities.js 파일 보기

@@ -17,8 +17,6 @@ function makeCity(name, height) {
},
};

console.log(views)

return makeEntity({ name: name }, views);
}



불러오는 중...
취소
저장