aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt
index 0496905..07fa2d3 100644
--- a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt
@@ -24,7 +24,7 @@ import java.nio.ByteBuffer
import java.nio.ByteOrder
import javax.imageio.ImageIO
-var bypassWyvtils = false
+var bypassNameHighlight = false
private set
private val regex = Regex("(?i)\\u00A7[0-9a-f]")
@@ -226,7 +226,7 @@ fun FontRenderer.drawBorderedString(text: String,
val noColors = text.replace(regex, "\u00A7r")
var yes = 0
if (((Minecraft.getMinecraft().ingameGUI.chatGUI as GuiNewChatHook).textOpacity / 4) > 3) {
- bypassWyvtils = true
+ bypassNameHighlight = true
for (xOff in -2..2) {
for (yOff in -2..2) {
if (xOff * xOff != yOff * yOff) {
@@ -237,7 +237,7 @@ fun FontRenderer.drawBorderedString(text: String,
}
}
}
- bypassWyvtils = false
+ bypassNameHighlight = false
}
yes += drawString(text, x, y, color)
return yes