Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get ExtendedBlockState before rendering in block overlay fix #548

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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