diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-10 04:42:26 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-10 04:42:26 +0100 |
commit | 3bc1adb54ac139bc9d88595dba20978ef4aabf0d (patch) | |
tree | 4ef6fb3b8265ae3b5cb9f17ab1384a9bd06aa535 /src | |
parent | f234a3db037e36242fcf92463abe947999d420fa (diff) | |
download | skyhanni-3bc1adb54ac139bc9d88595dba20978ef4aabf0d.tar.gz skyhanni-3bc1adb54ac139bc9d88595dba20978ef4aabf0d.tar.bz2 skyhanni-3bc1adb54ac139bc9d88595dba20978ef4aabf0d.zip |
Code cleanup
Diffstat (limited to 'src')
5 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java index b72565cfa..5800caf1c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java @@ -219,7 +219,7 @@ public class Misc { public Position chickenHeadTimerPosition = new Position(-372, 73, false, true); @Expose - @ConfigOption(name = "Exp Bottles", desc = "Hides all the experience bottles lying on the ground.") + @ConfigOption(name = "Exp Bottles", desc = "Hides all the experience orbs lying on the ground.") @ConfigEditorBoolean public boolean hideExpBottles = false; diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt index 2585278e5..a3dcfd131 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt @@ -1,7 +1,6 @@ package at.hannibal2.skyhanni.features.garden import at.hannibal2.skyhanni.SkyHanniMod -import at.hannibal2.skyhanni.config.features.Garden import at.hannibal2.skyhanni.data.GardenCropMilestones import at.hannibal2.skyhanni.events.* import at.hannibal2.skyhanni.utils.LorenzUtils @@ -19,7 +18,7 @@ class GardenCropMilestoneDisplay { private var needsInventory = false private val cultivatingData = mutableMapOf<String, Int>() private val timeTillNextCrop = mutableMapOf<String, Long>() - private val config: Garden get() = SkyHanniMod.feature.garden + private val config get() = SkyHanniMod.feature.garden companion object { fun getCropsPerSecond(crop: String): Int? { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt index 68c35b64d..f84e9fa44 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenDeskInSBMenu.kt @@ -1,7 +1,6 @@ package at.hannibal2.skyhanni.features.garden import at.hannibal2.skyhanni.SkyHanniMod -import at.hannibal2.skyhanni.config.features.Garden import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryOpenEvent import at.hannibal2.skyhanni.utils.NEUItems @@ -15,7 +14,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class GardenDeskInSBMenu { - private val config: Garden get() = SkyHanniMod.feature.garden + private val config get() = SkyHanniMod.feature.garden private var showItem = false private val item by lazy { 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 1189d69cd..bbffd92f3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt @@ -1,7 +1,6 @@ package at.hannibal2.skyhanni.features.garden import at.hannibal2.skyhanni.SkyHanniMod -import at.hannibal2.skyhanni.config.features.Garden import at.hannibal2.skyhanni.data.SendTitleHelper import at.hannibal2.skyhanni.events.GardenToolChangeEvent import at.hannibal2.skyhanni.events.GuiRenderEvent @@ -13,7 +12,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.regex.Pattern class GardenOptimalSpeed { - private val config: Garden get() = SkyHanniMod.feature.garden + private val config get() = SkyHanniMod.feature.garden private var currentSpeed = 100 private var optimalSpeed = -1 private val currentSpeedPattern = Pattern.compile(" Speed: §r§f✦(.*)") diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt index 3f1c31fc7..6e9d51fbf 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt @@ -32,7 +32,7 @@ class GardenVisitorFeatures { private var tick = 0 private val copperPattern = Pattern.compile(" §8\\+§c(.*) Copper") private val offerAcceptedPattern = Pattern.compile("§6§lOFFER ACCEPTED §r§8with §r(.*) §r.*") - private val config: Garden get() = SkyHanniMod.feature.garden + private val config get() = SkyHanniMod.feature.garden companion object { var inVisitorInventory = false |