aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt
index f2e37e353..a4a326ad2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt
@@ -97,18 +97,19 @@ class GardenOptimalSpeed {
private fun CropType.getOptimalSpeed() = getConfig().get().toInt()
- private fun CropType.getConfig(): Property<Float> = when (this) {
- CropType.WHEAT -> configCustomSpeed.wheat
- CropType.CARROT -> configCustomSpeed.carrot
- CropType.POTATO -> configCustomSpeed.potato
- CropType.NETHER_WART -> configCustomSpeed.netherWart
- CropType.PUMPKIN -> configCustomSpeed.pumpkin
- CropType.MELON -> configCustomSpeed.melon
- CropType.COCOA_BEANS -> configCustomSpeed.cocoaBeans
- CropType.SUGAR_CANE -> configCustomSpeed.sugarCane
- CropType.CACTUS -> configCustomSpeed.cactus
- CropType.MUSHROOM -> configCustomSpeed.mushroom
- }
+ private fun CropType.getConfig(): Property<Float> =
+ when (this) {
+ CropType.WHEAT -> configCustomSpeed.wheat
+ CropType.CARROT -> configCustomSpeed.carrot
+ CropType.POTATO -> configCustomSpeed.potato
+ CropType.NETHER_WART -> configCustomSpeed.netherWart
+ CropType.PUMPKIN -> configCustomSpeed.pumpkin
+ CropType.MELON -> configCustomSpeed.melon
+ CropType.COCOA_BEANS -> configCustomSpeed.cocoaBeans
+ CropType.SUGAR_CANE -> configCustomSpeed.sugarCane
+ CropType.CACTUS -> configCustomSpeed.cactus
+ CropType.MUSHROOM -> configCustomSpeed.mushroom
+ }
@SubscribeEvent
fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) {