Skip to content

Commit

Permalink
fix totem animation crashing the game
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Jul 14, 2024
1 parent 179192f commit 0b2ffdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.renderer.GameRenderer;
import net.minecraft.client.renderer.LevelRenderer;
Expand Down Expand Up @@ -640,7 +641,7 @@ private static void renderVRSelfEffects(float par1) {
&& dataHolder.currentPass != RenderPass.CAMERA) {
VREffectsHelper.renderFireInFirstPerson();
}
mc.gameRenderer.renderItemActivationAnimation(null, par1);
mc.gameRenderer.renderItemActivationAnimation(new GuiGraphics(mc, mc.renderBuffers().bufferSource()), par1);
}

public static void renderFireInFirstPerson() {
Expand Down

0 comments on commit 0b2ffdd

Please sign in to comment.