From ee20388f6fdf8ff2dd1fee6c4388d45cccd1f799 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 4 May 2019 11:30:16 +0300 Subject: [PATCH] v 0.8.11b --- modules/ui/biomes-editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/biomes-editor.js b/modules/ui/biomes-editor.js index e743ae13..70ac2f52 100644 --- a/modules/ui/biomes-editor.js +++ b/modules/ui/biomes-editor.js @@ -91,7 +91,7 @@ function editBiomes() { // add listeners body.querySelectorAll("div.biomes").forEach(el => el.addEventListener("mouseenter", ev => biomeHighlightOn(ev))); - body.querySelectorAll("div.biomes").forEach(el => el.addEventListener("mouseleave", ev => biomeHighlightOff(ev))); + body.querySelectorAll("div.biomes").forEach(el => el.addEventListener("mouseleave", ev => biomeHighlightOff(ev))); body.querySelectorAll("div.biomes").forEach(el => el.addEventListener("click", selectBiomeOnLineClick)); body.querySelectorAll("div > input[type='color']").forEach(el => el.addEventListener("input", biomeChangeColor)); body.querySelectorAll("div > input.biomeName").forEach(el => el.addEventListener("input", biomeChangeName)); @@ -129,10 +129,10 @@ function editBiomes() { function biomeChangeHabitability() { 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) { 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; } biomesData.habitability[biome] = +this.value;