Liquid bounding feedback

This commit is contained in:
Laetitia (O-01-67) 2022-11-12 13:43:34 -05:00 committed by GitHub
parent d4d5783637
commit f94febc6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ if(enabledMods.includes(libraryMod)) {
liquidAmount = 10
}
liquidAmount = parseInt(liquidAmount)
if(liquidAmount > 10000) {
alert("Maximum amount of liquids is 10000.\nOnly 10000 liquids were added.")
} else if(liquidAmount < 1) {
alert("Minimum amount of liquids is 1.\n1 liquid was added.")
}
liquidAmount = Math.min(10000,Math.max(liquidAmount,1))
} else {
liquidAmount = 10