mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
v 0.8.11b
This commit is contained in:
parent
a24b2ed10f
commit
ee20388f6f
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue