Skip to content

Conversation

@Hekera
Copy link

@Hekera Hekera commented Sep 26, 2021

No description provided.

@CLAassistant
Copy link

CLAassistant commented Sep 26, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@rubensworks rubensworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general!
I'll do a more detailed later, but in the meantime I already gave one comment on the level of abstraction of the new export tasks.

String subKey = "fluid:" + location;
//Test if fluid is opaque
if (RenderTypeLookup.canRenderInLayer(fluidEntry.getValue().getDefaultState(), RenderType.getSolid())) {
exportTasks.add((matrixStack, bImage) -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's quite a bit of code duplication in these tasks. Could this be abstracted? Otherwise this significantly complicates maintenance effort in future updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants