Skip to content

Commit

Permalink
Merge pull request #548 from jchung01/vanilla-tweaks
Browse files Browse the repository at this point in the history
Get ExtendedBlockState before rendering in block overlay fix
  • Loading branch information
ACGaming authored Aug 29, 2024
2 parents 8eefd9b + 20c4cbb commit c5ddc55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public static void renderNearbyBlocks(float partialTicks)
bufferBuilder.setTranslation(-x, -(y - player.getEyeHeight()), -z);
}
IBlockState state1 = state.getActualState(world, pos);
// Call extendedBlockState if it has one: see BlockRendererDispatcher#renderBlock()
state1 = state.getBlock().getExtendedState(state1, world, pos);
mc.getBlockRendererDispatcher().getBlockModelRenderer().renderModel(world, mc.getBlockRendererDispatcher().getModelForState(state1), state1, pos, bufferBuilder, false);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ public static class BlockOverlayCategory
"Excludes blocks from the block overlay bugfix",
"Syntax: modid:block"
})
public String[] utBlockOverlayBlacklist = new String[]
{
"appliedenergistics2:drive"
};
public String[] utBlockOverlayBlacklist = new String[] {};

@Config.Name("[3] Whitelist")
@Config.Comment
Expand Down

0 comments on commit c5ddc55

Please sign in to comment.