From 7c618552f30fdb717219c348b9f24dcacc651442 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:10:58 +0200 Subject: Disabled player rank hider feature for now. Reenable it in couple days again. --- .../features/chat/playerchat/PlayerChatModifier.kt | 27 +++++++++++----------- .../skyhanni/features/garden/EliteFarmingWeight.kt | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt index ba144e9db..b5927d31f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatModifier.kt @@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.features.chat.playerchat import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.LorenzChatEvent -import at.hannibal2.skyhanni.features.dungeon.DungeonMilestonesDisplay import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import net.minecraft.util.ChatComponentText import net.minecraft.util.IChatComponent @@ -69,19 +68,19 @@ class PlayerChatModifier { } } - if (SkyHanniMod.feature.chat.playerRankHider) { - for (pattern in patterns) { - string = string.replace(pattern, "§b$1") - } - string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16})'s", "§b$1's") - string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16}) (§.)", "§b$1 $2") - - // TODO remove workaround - if (!DungeonMilestonesDisplay.isMilestoneMessage(input)) { - //all players same color in chat - string = string.replace("§r§7: ", "§r§f: ") - } - } +// if (SkyHanniMod.feature.chat.playerRankHider) { +// for (pattern in patterns) { +// string = string.replace(pattern, "§b$1") +// } +// string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16})'s", "§b$1's") +// string = string.replace("§(?:7|a|b|6)((?:\\w+){2,16}) (§.)", "§b$1 $2") +// +// // TODO remove workaround +// if (!DungeonMilestonesDisplay.isMilestoneMessage(input)) { +// //all players same color in chat +// string = string.replace("§r§7: ", "§r§f: ") +// } +// } if (SkyHanniMod.feature.markedPlayers.highlightInChat) { for (markedPlayer in MarkedPlayerManager.playerNamesToMark) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt index 612bebfbc..904f74bbe 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt @@ -270,7 +270,7 @@ class EliteFarmingWeight { var totalWeight = 0.0 for (crop in CropType.values()) { val weight = crop.getLocalCounter() / crop.getFactor() - val roundedWeight = weight.let { if (round) it.round(2) else it } + val roundedWeight = weight.let { if (round) it.round(2) else it } weightPerCrop[crop] = roundedWeight totalWeight += roundedWeight } -- cgit