Skip to content

Comments

OverlayedFluidHandler refactor#1694

Merged
TechLord22 merged 3 commits intoGregTechCEu:masterfrom
Tictim:overlayed_fluid_handler_refactor
Apr 10, 2023
Merged

OverlayedFluidHandler refactor#1694
TechLord22 merged 3 commits intoGregTechCEu:masterfrom
Tictim:overlayed_fluid_handler_refactor

Conversation

@Tictim
Copy link
Contributor

@Tictim Tictim commented Apr 10, 2023

What

This PR refactors OverlayedFluidHandler. Supersedes #1682.

Implementation Details

In addition to the bugfix provided by aforementioned PR, this PR adds a few things.

  • Initialization of uniqueFluidMap cache was moved from initTank to usage.
  • Separated two insertion logic used to its own method.
  • allowSameFluidFill cache is replaced with direct access to overlayed.allowSameFluidFill() method.
  • Minor code edits (removing unnecessary getter/setters, docs and stuff)

Potential Compatibility Issues

None

@TechLord22 TechLord22 added the type: refactor Suggestion to refactor a section of code label Apr 10, 2023
@TechLord22 TechLord22 merged commit 456af17 into GregTechCEu:master Apr 10, 2023
@Tictim Tictim deleted the overlayed_fluid_handler_refactor branch April 11, 2023 01:52
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.

2 participants