From 1f070860c97b72e55410b3905d86c79d2c02cdef Mon Sep 17 00:00:00 2001 From: JustAGenericUsername Date: Sat, 6 Apr 2024 19:10:01 -0400 Subject: [PATCH] ah --- mods/10kelements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/10kelements.js b/mods/10kelements.js index 50e02d7d..cb9e4543 100644 --- a/mods/10kelements.js +++ b/mods/10kelements.js @@ -7,7 +7,7 @@ elements.change_count = { if (!cans) { return } if (cans > 2000000){alert("You have put too big of a number! This would surely crash your browser or eat up all your RAM! Element count will remain unchanged."); return} if (cans < 1){alert("You have either put a decimal, zero, or a negative number. Why? Element count will remain unchanged."); return} - if (parseInt(cans) == NaN){alert("Apparently your input isnt even a number. Try again. Element count will remain unchanged."); return} + if (isNaN(parseInt(cans))){alert("Apparently your input isnt even a number. Try again. Element count will remain unchanged."); return} settings.randomcount = parseInt(cans) saveSettings() },