Show tooltips for shader options (#705)

* Fix tooltiops

* Foolproof
This commit is contained in:
TotallyNotOndre authored and GitHub committed 2024-10-31 16:03:52 +00:00
1 parent 5f328e9b57
commit 979ad344a1
1 file changed
+8
@@ -111,6 +111,12 @@ public class ShaderPackScreen extends GuiScreen implements HudHideable {
}
}
if (hoveredElement != null) {
hoveredElementCommentTimer++;
} else {
hoveredElementCommentTimer = 0;
}
final float previousHoverTimer = this.guiButtonHoverTimer;
super.drawScreen(mouseX, mouseY, delta);
if (previousHoverTimer == this.guiButtonHoverTimer) {
@@ -374,6 +380,8 @@ public class ShaderPackScreen extends GuiScreen implements HudHideable {
public void applyChanges() {
final ShaderPackEntry entry = this.shaderPackList.getSelected();
if (entry == null) return;
this.shaderPackList.setApplied(entry);
final String name = entry.getPackName();