Skip to content

Comments

Fix Converter Capabilty returning Null in certain situations#1912

Merged
serenibyss merged 2 commits intoGregTechCEu:masterfrom
ghzdude:gh-fix-converters
Jul 8, 2023
Merged

Fix Converter Capabilty returning Null in certain situations#1912
serenibyss merged 2 commits intoGregTechCEu:masterfrom
ghzdude:gh-fix-converters

Conversation

@ghzdude
Copy link
Contributor

@ghzdude ghzdude commented Jul 7, 2023

What

Fixes #1614.

Implementation Details

getCapability() was returning null in certain circumstances when trying to get GregtechCapabilities.CAPABILITY_ENERGY_CONTAINER when the EnergyNetWalker was traversing.

This fixes that issue by copying what was done for getting CapabilityEnergy.ENERGY and adjusting it for the EU container

Outcome

Fixes #1614.

Potential Compatibility Issues

none

@ghzdude ghzdude requested a review from a team as a code owner July 7, 2023 23:52
@ghzdude ghzdude added this to the 2.7 milestone Jul 7, 2023
@ghzdude ghzdude added the type: bug Something isn't working label Jul 7, 2023
@serenibyss serenibyss merged commit 65f720f into GregTechCEu:master Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If the cable is placed before the converter is placed, power will not flow to the converter.

2 participants