Fixed speed issue

This commit is contained in:
TheEssem 2021-06-09 22:50:14 -05:00
parent 8b07524e6b
commit 5afff62677
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA

View file

@ -4,7 +4,7 @@ class SpeedCommand extends ImageCommand {
params(args) {
const speed = parseInt(args[0]);
return {
speed: isNaN(speed) ? 2 : speed
speed: isNaN(speed) || speed < 1 ? 2 : speed
};
}