Skip to content

Commit

Permalink
Ensure BufferBuilder#quad always activates sprite
Browse files Browse the repository at this point in the history
- Mark sprite as active in the non-optimized path in MixinBufferBuilder as well
  • Loading branch information
PepperCode1 committed Mar 29, 2023
1 parent e0a3fd1 commit 7ef95d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public void quad(MatrixStack.Entry matrices, BakedQuad bakedQuad, float r, float
if (!this.canSkipElementChecks) {
super.quad(matrices, bakedQuad, r, g, b, light, overlay);

SpriteUtil.markSpriteActive(bakedQuad.getSprite());

return;
}

Expand All @@ -45,6 +47,8 @@ public void quad(MatrixStack.Entry matrices, BakedQuad bakedQuad, float[] bright
if (!this.canSkipElementChecks) {
super.quad(matrices, bakedQuad, brightnessTable, r, g, b, light, overlay, colorize);

SpriteUtil.markSpriteActive(bakedQuad.getSprite());

return;
}

Expand Down

0 comments on commit 7ef95d5

Please sign in to comment.