Skip to content

Commit

Permalink
number only
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM committed Mar 25, 2024
1 parent fe52035 commit 087ec8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/js/cheats.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
document.addEventListener("keydown", function (event) {
if (event.keyCode == 74) {
let suns = prompt("Spawn Sun", "50");
if (suns == null) {
if (suns == null || isNaN(suns)) {
return;
}
AppearSun(
Expand Down

0 comments on commit 087ec8a

Please sign in to comment.