Skip to content

Commit

Permalink
disable background rendering of the hud element because we render our…
Browse files Browse the repository at this point in the history
… own background
  • Loading branch information
John200410 committed May 11, 2024
1 parent 7304c1f commit 428f500
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package me.john200410.spotify.ui;

import com.mojang.blaze3d.platform.GlUtil;
import com.mojang.blaze3d.platform.NativeImage;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
Expand Down Expand Up @@ -234,6 +233,11 @@ public void tick() {
}
}

@Override
public boolean shouldDrawBackground() {
return false;
}

@Override
public void renderContent(RenderContext context, double mouseX, double mouseY) {
final IRenderer2D renderer = this.getRenderer();
Expand Down

0 comments on commit 428f500

Please sign in to comment.