Skip to content

Fix display voltage of WorkableElectricMultiblockMachine#4606

Open
TonyCrane wants to merge 1 commit intoGregTechCEu:1.20.1from
TonyCrane:1.20.1
Open

Fix display voltage of WorkableElectricMultiblockMachine#4606
TonyCrane wants to merge 1 commit intoGregTechCEu:1.20.1from
TonyCrane:1.20.1

Conversation

@TonyCrane
Copy link

What

Set the display voltage of WorkableElectricMultiblockMachine to the max voltage of all energy hatch parts by getting the voltage one by one instead of getting the output voltage of EnergyContainerList.

Implementation Details

#4462 use getEnergyContainer().getOutputVoltage() to get the highest output voltage in order to support more energy hatch types (like laser). But the result of getEnergyContainer() is an instance of EnergyContainerList whose outputVoltage is re-calculated by both voltage and amperage of all energy containers of this machine. Resulting the voltage is not actually the voltage of the hatch tier.

Outcome

The expected behavior and the actual outcome is the same as #4002.

@TonyCrane TonyCrane requested a review from a team as a code owner February 11, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant