-
Notifications
You must be signed in to change notification settings - Fork 351
Open
Labels
Description
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
7.4.0
Minecraft Version
1.20.1 Forge
Recipe Viewer Installed
JEI
Environment
Singleplayer
Cross-Mod Interaction
Yes
Other Installed Mods
- Industrial Foregoing (later referenced as IF)
- Titanium (IF depends on this)
Expected Behavior
Being able to provide energy to IF machines using GT cables EU to FE compat.
Actual Behavior
Machine does not receives energy.
Steps to Reproduce
- Build test bench:
a) Place Creative Energy from GT
b) Place any Cable or Wire from GT next to Creative Energy
c) Place any powered machine from IF (e.g. Plant Gatherer)
d) Take Wire Cutter from GT and connect both Creative Energy and the IF machine to the cable. - Configure Creative Energy to the cable's nominal value and set it active.
- Check energy level of the IF machine. There's two possible outcomes:
a) The machine gets energy (expected behavior)
b) The machine does not get energy (actual behavior)
Additional Information
After some digging in both Forestry: Community Edition (Forestry's Multi-Farm Gearboxes does work with the compat) and Titanium source code, I realized that there were two different capabilities used for Forge Energy:
net.minecraftforge.common.capabilities.ForgeCapabilities.ENERGY(used by GT and Forestry)net.minecraftforge.energy.CapabilityEnergy.ENERGY(used by Titanium dependencies including IF)
Both capabilities apparently uses net.minecraftforge.energy.IEnergyStorage so I expect that both (1) and (2) works the same way which means that where every occurence of (1) adding an OR statement to test for (2) would not cause any issue.
Reactions are currently unavailable