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

Refactors tank fluid renderer to show fluid level #2487

Merged

Conversation

omergunr100
Copy link
Contributor

What

This

Implementation Details

Math

Outcome

Much wow

Potential Compatibility Issues

Hardcoded the rotation because there are only 6 possible orientations, if we're going to allow players to rotate the tank it'll need some work.

@omergunr100 omergunr100 requested a review from a team as a code owner December 3, 2024 04:18
@Spicierspace153
Copy link
Contributor

S P O T L E S S : 3

@Spicierspace153 Spicierspace153 changed the title Change tank fluid renderer to show fluid level Refactors tank fluid renderer to show fluid level Dec 3, 2024
@Spicierspace153 Spicierspace153 added the type: refactor Suggestion to refactor a section of code label Dec 3, 2024
@screret
Copy link
Member

screret commented Dec 3, 2024

what if maxAmount is 0 from an old supertank?

@omergunr100
Copy link
Contributor Author

I think it'll round up to infinity which might cause the item to look full or empty (idk how the engine handles infinity), but it'll only happen until the item is placed and mined again.
If that's an issue I can add it to the isCreative clause to make it appear full.

@screret screret merged commit bc20755 into GregTechCEu:1.20.1 Dec 3, 2024
3 checks passed
@omergunr100 omergunr100 deleted the 1.20.1-betterer-tank-fluid-rendering branch December 3, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants