Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 24, 2024
1 parent 4d12e6d commit 65016c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dist/src/main/kotlin/kr/toxicity/hud/hud/HudImageElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import kotlin.math.roundToInt
class HudImageElement(parent: HudImpl, private val imageLayout: ImageLayout, gui: GuiLocation, pixel: PixelLocation) {

private val chars = run {
val hud = imageLayout.image
val finalPixel = imageLayout.location + pixel

val shader = HudShader(
Expand All @@ -34,7 +33,7 @@ class HudImageElement(parent: HudImpl, private val imageLayout: ImageLayout, gui
val negativeSpace = parent.getOrCreateSpace(-1)
fun HudImage.toComponent(): ImageComponent {
val list = ArrayList<PixelComponent>()
if (hud.listener != null) {
if (listener != null) {
list.add(EMPTY_PIXEL_COMPONENT)
}
image.forEach { pair ->
Expand Down

0 comments on commit 65016c4

Please sign in to comment.