Fix box width

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404-59 2026-02-06 00:09:44 +01:00
parent 1c43549b8f
commit a20a2d2d8c
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -15,6 +15,7 @@ import net.minecraft.util.ARGB
import org.jetbrains.annotations.ApiStatus
import java.util.TreeSet
import kotlin.collections.LinkedHashSet
import kotlin.math.roundToInt
@ApiStatus.Internal
class ClickBox(
@ -90,7 +91,7 @@ class ClickBox(
x = x,
y = (y + height),
height = clickboxHeightOffset,
width = width,
width = width + inclination.roundToInt(),
color = color,
opacity = opacity
)
@ -98,7 +99,7 @@ class ClickBox(
// Separator line
RenderingUtil.hLine(
guiGraphics = guiGraphics,
x1 = (x + 0).toInt(),
x1 = (x + inclination).toInt(),
x2 = (x + width).toInt(),
y = (y + height).toInt(),
rgb = Colors.WHITE_LINES.hexValue,