Skip to content

Commit

Permalink
Enforce text layer draw order
Browse files Browse the repository at this point in the history
Fixes #287
Fixes #288
  • Loading branch information
RaphiMC committed Nov 9, 2024
1 parent 32ca512 commit b91d6f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ protected int getLayerOrder(final RenderLayer layer) {
}
} else if (textureId.equals(TexturedRenderLayers.ARMOR_TRIMS_ATLAS_TEXTURE)) {
return 1;
} else if (layer.name.startsWith("text")) {
// Draws vanilla text over custom font layers
// Fixes https://github.com/RaphiMC/ImmediatelyFast/issues/81, https://github.com/RaphiMC/ImmediatelyFast/issues/287, https://github.com/RaphiMC/ImmediatelyFast/issues/288
if (textureId.getNamespace().equals("minecraft")) {
return 2;
} else {
return 1;
}
}
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"core.MixinWindow",
"core.compat.MixinGameRenderer",
"core.compat.MixinTextDisplayEntityRenderer",
"core.compat.MixinTextRenderer_Drawer",
"disable_error_checking.MixinGL11",
"fast_buffer_upload.MixinVertexBuffer",
"fast_text_lookup.MixinTextRenderer_Drawer",
Expand Down

0 comments on commit b91d6f7

Please sign in to comment.