Skip to content

Commit

Permalink
[ui] always empty context buffer after drawing tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
gliscowo committed Dec 2, 2023
1 parent be3a1fe commit e6c7e73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/wispforest/owo/ui/core/Component.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public interface Component extends PositionedRectangle {
default void drawTooltip(OwoUIDrawContext context, int mouseX, int mouseY, float partialTicks, float delta) {
if (!this.shouldDrawTooltip(mouseX, mouseY)) return;
context.drawTooltip(MinecraftClient.getInstance().textRenderer, mouseX, mouseY, this.tooltip());
context.draw();
}

/**
Expand Down

0 comments on commit e6c7e73

Please sign in to comment.