aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropTimeCommand.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropTimeCommand.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropTimeCommand.kt
index e6d970b24..9739ece50 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropTimeCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropTimeCommand.kt
@@ -27,7 +27,7 @@ object GardenCropTimeCommand {
val rawAmount = args[0]
val amount = try {
- rawAmount.formatNumber().toInt()
+ rawAmount.formatNumber()
} catch (e: NumberFormatException) {
LorenzUtils.userError("Not a valid number: '$rawAmount'")
return
@@ -45,7 +45,7 @@ object GardenCropTimeCommand {
val baseName = baseId.getItemName()
val crop = CropType.getByName(baseName.removeColor())
- val fullAmount = baseAmount.toLong() * amount.toLong()
+ val fullAmount = baseAmount.toLong() * amount
val text = if (baseAmount == 1) {
"§e${amount.addSeparators()}x $itemName"
} else {