Skip to content

Commit

Permalink
fix(legacy): accidental removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mems01 committed Feb 9, 2025
1 parent 4a126b0 commit 578970c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/net/ccbluex/liquidbounce/ui/client/hud/HUD.kt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ object HUD : MinecraftInstance {
}

/** Remove [element] from HUD */
fun removeElement(element: Element): HUD {
fun removeElement(hudDesigner: GuiHudDesigner, element: Element): HUD {
if (hudDesigner.elementEditableText?.element == element) {
hudDesigner.elementEditableText = null
}

element.destroyElement()
elements.remove(element)
return this
Expand Down

0 comments on commit 578970c

Please sign in to comment.