v 0.8.11b

This commit is contained in:
Azgaar 2019-05-04 11:30:16 +03:00
parent a24b2ed10f
commit ee20388f6f

View file

@ -129,10 +129,10 @@ function editBiomes() {
function biomeChangeHabitability() { function biomeChangeHabitability() {
const biome = +this.parentNode.dataset.id; const biome = +this.parentNode.dataset.id;
const failed = isNaN(+this.value) || +this.value < 0 || +this.value > 999; const failed = isNaN(+this.value) || +this.value < 0 || +this.value > 9999;
if (failed) { if (failed) {
this.value = biomesData.habitability[biome]; this.value = biomesData.habitability[biome];
tip("Please provide a valid number in range 0-999", false, "error"); tip("Please provide a valid number in range 0-9999", false, "error");
return; return;
} }
biomesData.habitability[biome] = +this.value; biomesData.habitability[biome] = +this.value;