GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
223 stars 166 forks source link

fix solar panels not outputting to cables #2416

Closed TechLord22 closed 2 months ago

TechLord22 commented 2 months ago

What

Fixes solar panel not sending energy through cables when directly attached.

Implementation Details

Getting the energy container capability from a cable with a null facing retrieves the default energy handler. This energy handler is only useful when attempting to determine things like energy capacity, max amperage, and max voltage of the container.

This PR makes the solar panel retrieve the sided capability, which is capable of actually accepting energy, unlike the default container.

Outcome

Fixes solar panels outputting to cables.