fix rebuildWorldgenList not deleting the existing entries

This commit is contained in:
An Orbit 2024-01-18 17:53:47 -05:00 committed by GitHub
parent ff8e8b934d
commit 5eca641bec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -26687,9 +26687,10 @@ ${eightSpaces}Example full decor definition: bird:0.04:10:#FF0000,#FFFF00,#00FF0
}
function rebuildWorldgenList() { //vanilla code
document.getElementById("worldgenselect").innerHTML = '<option value="off">Disabled</option>';
for (var key in worldgentypes) {
document.getElementById("worldgenselect").innerHTML += "<option value='" + key + "'>" + key.replace(/_/g, " ").replace(/\b\w/g, l => l.toUpperCase()) + "</option>";
}
};
};
function bareClear() {