Skip to content

Commit

Permalink
Fix IE's tools rendering inverted in offhand, see #5943, closes #5949
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSunrize committed Jun 16, 2024
1 parent bd5f9f4 commit 08bc18d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Fix potential race condition with wires damaging entities (BluSunrize)
- Fix shader banners and potion fluids using the wrong colors (BluSunrize)
- Fix accumulator backpack getting rendered as full-bright when worn (BluSunrize)
- Fix IE's tools rendering inverted in offhand (BluSunrize)

##### Version 1.20.4-11.3.0-174
- Re-add CC-Tweaked integration (Malte)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ public <T> void renderByItem(
LivingEntity entity = GlobalTempData.getActiveHolder();
if(transformType==ItemDisplayContext.FIRST_PERSON_LEFT_HAND||transformType==ItemDisplayContext.THIRD_PERSON_LEFT_HAND)
{
MultiBufferSource oldBufferIn = bufferIn;
bufferIn = type -> new InvertingVertexBuffer(4, oldBufferIn.getBuffer(type));
// todo: do we still need this? Currently it's just resulting in model rendering inside-out
// MultiBufferSource oldBufferIn = bufferIn;
// bufferIn = type -> new InvertingVertexBuffer(4, oldBufferIn.getBuffer(type));
}
for(List<String> groups : callback.getSpecialGroups(stack, transformType, entity))
{
Expand Down

0 comments on commit 08bc18d

Please sign in to comment.