You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presumably due to the LayeredDraw system using a fixed Z separation of 200 units between layers, adding enough layers causes the top ones to become invisible.
To reproduce, add a loop like below to any mod that renders a custom GUI layer and run it standalone. The modded layer will be invisible.
privatevoidonRegisterGuiLayers(RegisterGuiLayersEventevent) {
// Register some placeholder layersfor(inti = 0; i < 50; i++) {
event.registerAboveAll(ResourceLocation.fromNamespaceAndPath(MOD_ID, "fake_" + i), newLayeredDraw.Layer() {
@Overridepublicvoidrender(GuiGraphicsguiGraphics, DeltaTrackerdeltaTracker) {
}
});
}
// Register the real layerevent.registerAboveAll(ResourceLocation.fromNamespaceAndPath(MOD_ID, "hud"), newModdedHUDRenderLayer());
}
The text was updated successfully, but these errors were encountered:
Issue is occurring again in current release of all the mods 10. We're having issues reproducing it with other mod combinations and it's seemingly random. Seems it may be a neoforge issue but we're not sure
Minecraft Version: 1.21
NeoForge Version: 21.0.112-beta
Description of issue:
Presumably due to the
LayeredDraw
system using a fixed Z separation of 200 units between layers, adding enough layers causes the top ones to become invisible.To reproduce, add a loop like below to any mod that renders a custom GUI layer and run it standalone. The modded layer will be invisible.
The text was updated successfully, but these errors were encountered: