Skip to content

Commit 89b321d

Browse files
Kenny-Huizbx1425
authored andcommitted
Fix potentially incorrect blending when rendering HUD
1 parent 83f8bb7 commit 89b321d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/cn/zbx1425/minopp/gui/GameOverlayLayer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ private static void drawStringWithBackdrop(GuiGraphics guiGraphics, Font font, C
216216
*/
217217
private boolean renderHandCards(GuiGraphics guiGraphics, DeltaTracker deltaTracker) {
218218
if (Minecraft.getInstance().options.hideGui) return false;
219-
RenderSystem.enableBlend();
220219

221220
Font font = Minecraft.getInstance().font;
222221
LocalPlayer player = Minecraft.getInstance().player;
@@ -248,6 +247,7 @@ private boolean renderHandCards(GuiGraphics guiGraphics, DeltaTracker deltaTrack
248247
}
249248
handCardCurrentXOff.keySet().removeIf(hash -> !handCardHashes.contains(hash));
250249

250+
RenderSystem.enableBlend();
251251
int width = Minecraft.getInstance().getWindow().getGuiScaledWidth();
252252
int height = Minecraft.getInstance().getWindow().getGuiScaledHeight();
253253
int handSize = realPlayer.hand.size();

0 commit comments

Comments
 (0)