Fix box width
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
1c43549b8f
commit
a20a2d2d8c
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user