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

Change the implementation of transformers #13

Merged
merged 5 commits into from
Jul 6, 2021

Conversation

BraggestSage833
Copy link
Contributor

@BraggestSage833 BraggestSage833 commented Jul 3, 2021

What:
Changes the implementation of transformers. If going down all sides but north will be for outputting energy. If going up all sides but the north side will be for inputting energy. Transformer overlays have also been updated to reflect this.

How solved:
Instead of using the method getFrontFacing() and getOpposite() I am using forge directions to decide the sidedness of rendering.

Outcome:
Outputting energy when going down and inputting energy when going up is no longer one sided.

Possible compatibility issue:
With more sides now acting as an output or input. peoples setups may break deepening on previous transformer placements

} else {
Textures.ENERGY_IN_MULTI.renderSided(getFrontFacing(), renderState, translation, PipelineUtil.color(pipeline, GTValues.VC[getTier()]));
Textures.ENERGY_OUT.renderSided(getFrontFacing().getOpposite(), renderState, translation, PipelineUtil.color(pipeline, GTValues.VC[getTier() - 1]));
if (frontFacing == EnumFacing.NORTH) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is too messy, we need to cut it down by a lot

@serenibyss
Copy link
Member

This PR needs a rebase, it is hard to tell what has actually changed

@serenibyss serenibyss merged commit 41735cd into GregTechCEu:master Jul 6, 2021
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