diff options
| author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-05-26 12:23:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-26 12:23:02 +0200 |
| commit | ea1385c77ffa8b9a4f98811fbf3e767c30d9edf7 (patch) | |
| tree | 668444c961f0e8fc23cf5e52b38c11e33ad74b11 /src/main/java | |
| parent | a214c141696f054b79c6ac13cb309992e3ac95d1 (diff) | |
| download | skyhanni-ea1385c77ffa8b9a4f98811fbf3e767c30d9edf7.tar.gz skyhanni-ea1385c77ffa8b9a4f98811fbf3e767c30d9edf7.tar.bz2 skyhanni-ea1385c77ffa8b9a4f98811fbf3e767c30d9edf7.zip | |
Fix Typos (#1897)
Diffstat (limited to 'src/main/java')
40 files changed, 59 insertions, 59 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index 5c85c97ec..f4f870b72 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -216,7 +216,7 @@ class ConfigManager { } } - // Some position elements dont need config links as they dont have a config option. + // Some position elements don't need config links as they don't have a config option. private val ignoredMissingConfigLinks = listOf( // commands "features.garden.GardenConfig.cropSpeedMeterPos", @@ -292,7 +292,7 @@ class ConfigManager { run() } catch (e: Throwable) { e.printStackTrace() - LorenzUtils.shutdownMinecraft("Config is corrupt inside developement enviroment.") + LorenzUtils.shutdownMinecraft("Config is corrupt inside development environment.") } } else { run() diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java index 1cc46da60..c5992856b 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java @@ -61,7 +61,7 @@ public class BarnTimerConfig { public boolean wormLimitAlert = true; @Expose - @ConfigOption(name = "Reset Timer Hotkey", desc = "Press this key to reset the timer manualy") + @ConfigOption(name = "Reset Timer Hotkey", desc = "Press this key to reset the timer manually") @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE) public int manualResetTimer = Keyboard.KEY_NONE; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java index 3f86dfefe..db49702d9 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java @@ -126,13 +126,13 @@ public class ChocolateFactoryConfig { public Position position = new Position(163, 160, false, true); @Expose - @ConfigOption(name = "Compact On Click", desc = "Compact the item toolip when clicking on the chocolate.") + @ConfigOption(name = "Compact On Click", desc = "Compact the item tooltip when clicking on the chocolate.") @ConfigEditorBoolean @FeatureToggle public boolean compactOnClick = true; @Expose - @ConfigOption(name = "Always Compact", desc = "Always Compact the item toolip on the chocolate. Requires the above option to be enabled.") + @ConfigOption(name = "Always Compact", desc = "Always Compact the item tooltip on the chocolate. Requires the above option to be enabled.") @ConfigEditorBoolean public boolean compactOnClickAlways = false; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/helper/TiaRelayConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/helper/TiaRelayConfig.java index 16dfbb8ef..c51707f45 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/helper/TiaRelayConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/helper/TiaRelayConfig.java @@ -8,7 +8,7 @@ import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class TiaRelayConfig { @Expose - @ConfigOption(name = "Sound Puzzle Helper", desc = "Helps with solving the sound puzzle for Tia (The 9 Operator Chips to do maintainance for the Abiphone Network).") + @ConfigOption(name = "Sound Puzzle Helper", desc = "Helps with solving the sound puzzle for Tia (The 9 Operator Chips to do maintenance for the Abiphone Network).") @ConfigEditorBoolean @FeatureToggle public boolean soundHelper = true; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ChickenHeadConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ChickenHeadConfig.java index 68dce34a5..ecae45026 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ChickenHeadConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ChickenHeadConfig.java @@ -10,7 +10,7 @@ import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class ChickenHeadConfig { @Expose - @ConfigOption(name = "Checken Head Timer", desc = "Show the cooldown until the next time you can lay an egg with the Chicken Head.") + @ConfigOption(name = "Chicken Head Timer", desc = "Show the cooldown until the next time you can lay an egg with the Chicken Head.") @ConfigEditorBoolean @FeatureToggle public boolean displayTimer = false; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/compacttablist/AdvancedPlayerListConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/compacttablist/AdvancedPlayerListConfig.java index a7652967e..d28f107fb 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/compacttablist/AdvancedPlayerListConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/compacttablist/AdvancedPlayerListConfig.java @@ -81,7 +81,7 @@ public class AdvancedPlayerListConfig { public boolean useLevelColorForName = false; @Expose - @ConfigOption(name = "Bingo Rank Number", desc = "Show the number of the bingo rank next to the icon. Useful if you are not so familar with bingo.") + @ConfigOption(name = "Bingo Rank Number", desc = "Show the number of the bingo rank next to the icon. Useful if you are not so familiar with bingo.") @ConfigEditorBoolean public boolean showBingoRankNumber = false; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/cosmetic/ArrowTrailConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/cosmetic/ArrowTrailConfig.java index 9195de6f8..203b47075 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/cosmetic/ArrowTrailConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/cosmetic/ArrowTrailConfig.java @@ -15,7 +15,7 @@ public class ArrowTrailConfig { public boolean enabled = false; @Expose - @ConfigOption(name = "Hide Nonplayer Arrows", desc = "Only shows for arrows the player has shot.") + @ConfigOption(name = "Hide Non-player Arrows", desc = "Only shows for arrows the player has shot.") @ConfigEditorBoolean public boolean hideOtherArrows = true; diff --git a/src/main/java/at/hannibal2/skyhanni/data/QuiverAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/QuiverAPI.kt index c40b291e6..f2e3a02ce 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/QuiverAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/QuiverAPI.kt @@ -90,7 +90,7 @@ object QuiverAPI { "(?:§.)*You've added (?:§.)*(?<type>.*) x(?<amount>.*) (?:§.)*to your quiver!" ) - // Bows that don't use the players arrows, checked using the SkyBlock Id + // Bows that don't use the players arrows, checked using the SkyBlock ID private val fakeBowsPattern by group.pattern("fakebows", "^(BOSS_SPIRIT_BOW|CRYPT_BOW)$") private val quiverInventoryNamePattern by group.pattern("quivername", "^Quiver$") private val quiverInventoryPattern by group.pattern( diff --git a/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt b/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt index cd9465264..db39e98c5 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt @@ -68,7 +68,7 @@ object HypixelBazaarFetcher { } if (internalName.getItemStackOrNull() == null) { - // Items that exist in Hypixel's Bazaar API, but not in NEU repo (not visible in in the ingame bazaar). + // Items that exist in Hypixel's Bazaar API, but not in NEU repo (not visible in the ingame bazaar). // Should only include Enchants if (LorenzUtils.debug) println("Unknown bazaar product: $key/$internalName") diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt index ccfd85ef7..afd4f43d8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt @@ -52,7 +52,7 @@ object BingoAPI { add(" guide: '${goal.guide}'") add(" done: '${goal.done}'") add(" highlight: '${goal.highlight}'") - add(" communtyGoalPercentage: '${goal.communtyGoalPercentage}'") + add(" communityGoalPercentage: '${goal.communtyGoalPercentage}'") val hiddenGoalData = goal.hiddenGoalData add(" hiddenGoalData") add(" unknownTip: '${hiddenGoalData.unknownTip}'") diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt index 120e66112..daccd37e3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt @@ -26,7 +26,7 @@ class BingoGoal { lateinit var hiddenGoalData: HiddenGoalData @Expose - var communtyGoalPercentage: Double? = null + var communtyGoalPercentage: Double? = null // TODO fix typo (Needs changes inside of storage) override fun toString(): String = displayName } diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt index e513871fe..683fe1857 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/Translator.kt @@ -20,7 +20,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.net.URLDecoder import java.net.URLEncoder -// TODO split into two classes: TranslatorCommand and GoogleTransaltor. only communicates via getTranslationFromEnglish and getTranslationToEnglish +// TODO split into two classes: TranslatorCommand and GoogleTranslator. only communicates via getTranslationFromEnglish and getTranslationToEnglish class Translator { private val messageContentRegex = Regex(".*: (.*)") diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt index 06802413a..f64467203 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt @@ -123,7 +123,7 @@ class AreaMiniBossFeatures { LorenzVec(-565.0, 41.0, -307.1), LorenzVec(-573.2, 51.0, -353.4), ), - MILLENIA_AGED_BLAZE( + MILLENNIA_AGED_BLAZE( EntityBlaze::class.java, 30_000_000, LorenzColor.DARK_RED, 60, LorenzVec(-292.5, 97.0, -999.7), LorenzVec(-232.3, 77.0, -951.1), diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt index 04de77ce9..9ba94fe86 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt @@ -34,7 +34,7 @@ class DianaFixChat { lastErrorTime = SimpleTimeMark.farPast() return } - // particles dont work if a valid target point is close + // particles don't work if a valid target point is close if (GriffinBurrowHelper.targetLocation != null) return val spadeUse = lastSpadeUse.passedSince() if (spadeUse <= 3.seconds) return @@ -71,7 +71,7 @@ class DianaFixChat { lastToggleMusicPrompt = SimpleTimeMark.now() ChatUtils.clickableChat( "§cError detecting Diana Guess! Changing the Particle Quality has not worked :( " + - "§eClick here to disable hypixel music!", + "§eClick here to disable hypixel music!", onClick = { hasSetToggleMusic = true HypixelCommands.toggleMusic() diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index c1485bcad..24bc891a8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -232,7 +232,7 @@ object GriffinBurrowHelper { while (!isValidGround(gY)) { gY-- if (gY < 65) { - // no ground detected, find lowest block below air + // no ground detected, find the lowest block below air return null } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt index fc43cdd95..f2fc89c5b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt @@ -30,7 +30,7 @@ object GriffinBurrowParticleFinder { private val burrows = mutableMapOf<LorenzVec, Burrow>() private var lastDugParticleBurrow: LorenzVec? = null - // This exist to detect the unlucky timing when the user opens a burrow before it gets fully deteced + // This exists to detect the unlucky timing when the user opens a burrow before it gets fully detected private var fakeBurrow: LorenzVec? = null @SubscribeEvent @@ -172,7 +172,7 @@ object GriffinBurrowParticleFinder { if (location == fakeBurrow) { fakeBurrow = null - // This exist to detect the unlucky timing when the user opens a burrow before it gets fully deteced + // This exists to detect the unlucky timing when the user opens a burrow before it gets fully detected tryDig(location, ignoreFound = true) return } diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt index 125bf718f..73fbc21a5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt @@ -202,17 +202,17 @@ class SoopyGuessBurrow { val xOff = dist * sin(y) val zOff = dist * cos(y) - val dencity = 5 + val density = 5 - for (o in 0..dencity) { - lastPos[0] += xOff / dencity - lastPos[2] += zOff / dencity + for (o in 0..density) { + lastPos[0] += xOff / density + lastPos[2] += zOff / density - lastPos[1] += ySpeed * dist / dencity - lastPos2[1] += ySpeed * dist / dencity + lastPos[1] += ySpeed * dist / density + lastPos2[1] += ySpeed * dist / density - lastPos2[0] -= xOff / dencity - lastPos2[2] -= zOff / dencity + lastPos2[0] -= xOff / density + lastPos2[2] -= zOff / density pr1.add(lastPos.toLorenzVec()) pr2.add(lastPos2.toLorenzVec()) diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt index 2ce023100..13bd451f7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt @@ -33,7 +33,7 @@ class ShowFishingItemName { if (!isEnabled()) return for (entityItem in EntityUtils.getEntitiesNextToPlayer<EntityItem>(15.0)) { val itemStack = entityItem.entityItem - // Hypixel sometimes replaces the bait item mid air with a stone + // Hypixel sometimes replaces the bait item midair with a stone if (itemStack.name.removeColor() == "Stone") continue var text = "" @@ -43,7 +43,7 @@ class ShowFishingItemName { if (itemStack.getSkullTexture() in cheapCoins) { text = "§6Coins" } else { - val name = itemStack.name.transformIf({isBait}) { "§7" + this.removeColor() } + val name = itemStack.name.transformIf({ isBait }) { "§7" + this.removeColor() } text += if (isBait) "§c§l- §r" else "§a§l+ §r" val size = itemStack.stackSize 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 fd73ec730..fcd7fcf9f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt @@ -33,7 +33,7 @@ class GardenOptimalSpeed { /** * This speed value represents the walking speed, not the speed stat. - * blocks per second = 4.317 * speed / 100 + * Blocks per second = 4.317 * speed / 100 * * It has an absolute speed cap of 500, and items that normally increase the cap do not apply here: * (Black Cat pet, Cactus knife, Racing Helmet or Young Dragon Armor) diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt index 75d0af8bb..b62f65cad 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt @@ -68,7 +68,7 @@ class VisitorRewardWarning { return } - // all but shift clicktypes work for accepting visitor + // all but shift click types work for accepting visitor if (event.clickTypeEnum == GuiContainerEvent.ClickType.SHIFT) return if (isRefuseSlot) { VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.REFUSED, "refused") diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt index 87aa21023..04bf1b595 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt @@ -57,7 +57,7 @@ object ChocolateFactoryStats { "§6${ChocolateFactoryTimeTowerManager.timeTowerCharges()}" } - val timeTowerFull = ChocolateFactoryTimeTowerManager.timeTowerFullTimemark() + val timeTowerFull = ChocolateFactoryTimeTowerManager.timeTowerFullTimeMark() val prestigeEstimate = ChocolateAmount.PRESTIGE.formattedTimeUntilGoal(ChocolateFactoryAPI.chocolateForPrestige) val chocolateUntilPrestigeCalculation = diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTimeTowerManager.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTimeTowerManager.kt index 695d1d480..530bd7558 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTimeTowerManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTimeTowerManager.kt @@ -123,7 +123,7 @@ object ChocolateFactoryTimeTowerManager { } } - fun timeTowerFullTimemark(): SimpleTimeMark { + fun timeTowerFullTimeMark(): SimpleTimeMark { val profileStorage = profileStorage ?: return Sim |
