Fabric API

Fabric API

152M Downloads

`drawStrokedRectangle` only draws inside screens

Closed this issue ยท 2 comments

commented

When calling drawStrokedRectangle from a context created by HudElementRegistry.attachElementBefore it only renders if a GUI is open. This is shown in the images below.

Image Image
commented

I should've added arrows, but I'm refering to the small purple box near the top of the screen.

commented
Image Image
 HudElementRegistry.addFirst(Identifier.ofVanilla("test"), (context, tickCounter) -> {
            context.drawStrokedRectangle(20, 20, 20, 20, 0xFFFFFFFF);
});

Mojang has fixed this themselves. I'm also not sure how this issue is related to fapi, unless you wanted fapi to fix it?