Skip to content

Commit

Permalink
fix: use DrawScreenEvent.Post
Browse files Browse the repository at this point in the history
this prevents elements from being rendered twice
  • Loading branch information
DJtheRedstoner committed Nov 16, 2022
1 parent 4832304 commit 6f61d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ArmorStatusRenderer {
private final Minecraft mc = Minecraft.getMinecraft();

@SubscribeEvent
public void onRenderArmor(GuiScreenEvent.DrawScreenEvent event) {
public void onRenderArmor(GuiScreenEvent.DrawScreenEvent.Post event) {
//#if MC==10809
GuiScreen gui = event.gui;
//#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void initGui(GuiScreenEvent.InitGuiEvent.Post event) {
}

@SubscribeEvent
public void drawScreen(GuiScreenEvent.DrawScreenEvent event) {
public void drawScreen(GuiScreenEvent.DrawScreenEvent.Post event) {
//#if MC==10809
GuiScreen gui = event.gui;
//#else
Expand Down

0 comments on commit 6f61d33

Please sign in to comment.