[minor issue] armor draining energy from weapon
shadoxxhd opened this issue ยท 3 comments
Issue Description:
Armor energy refill doesn't check energy container type.
What happens:
When the armor needs energy, it drains it from items like 'The Ender' if located in inventory (hotbar is fine).
What you expected to happen:
The armor refill code should check the type of items in your inventory before draining them.
Steps to reproduce:
- enable the armor refill option in the config file
- equip powered dark armor
- put a charged ender sword in your inventory
- take damage/jump/otherwise use energy
Your weapon now lost part of its charge.
Affected Versions (Do not use "latest"):
- EnderIO: 5.0.29
- EnderCore: 0.5.35
- Minecraft: 1.12.2
- Forge: 12.23.4.2739
- SpongeForge? no
- Optifine? no
- Single Player and/or Server? singleplayer
There's no "energy container type" to check, but dark steel items should not allow energy to be pulled out, so that fixes this, too.