diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-02-22 21:51:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 21:51:36 +0100 |
commit | 3994a15d86eee42023e3715a671c85de243ea226 (patch) | |
tree | d18ee46fdfb874f21785a143da03a6b50a76c922 | |
parent | df1d947da54f9de88c33ff298a387a2cb4e9a971 (diff) | |
download | skyhanni-3994a15d86eee42023e3715a671c85de243ea226.tar.gz skyhanni-3994a15d86eee42023e3715a671c85de243ea226.tar.bz2 skyhanni-3994a15d86eee42023e3715a671c85de243ea226.zip |
Fixed open bazaar command sending color code as well. #1035
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt index 98a8a47b4..575534400 100644 --- a/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt @@ -19,6 +19,7 @@ import at.hannibal2.skyhanni.utils.PrimitiveItemStack import at.hannibal2.skyhanni.utils.PrimitiveItemStack.Companion.makePrimitiveStack import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher +import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern import net.minecraft.inventory.Slot import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -140,7 +141,7 @@ object GetFromSackAPI { private fun bazaarMessage(item: String, amount: Int, isRemaining: Boolean = false) = ChatUtils.clickableChat( "§lCLICK §r§eto get the ${if (isRemaining) "remaining " else ""}§ax${amount} §9$item §efrom bazaar", - "bz $item" + "bz ${item.removeColor()}" ) private fun commandValidator(args: List<String>): Pair<CommandResult, PrimitiveItemStack?> { |