Infusions lost after death
cybercat5555 opened this issue ยท 2 comments
Expected Behavior
Infusions are kept after death but their MP emptied
Actual Behavior
Dying removes the infusion and reverts it back to the default
Steps to Reproduce
- Set up any infusion (I used "Infusion of the Flames" for this, but I'd assume any others would work)
- Kill yourself somehow
- Respawn with the default power bar
Version of Minecraft, Bewitchment, Forge, Patchouli, LLibrary and Baubles used
MC 1.12.2
BW 0.19.16
Forge .2814
Patchouli 1.0-16
Llibrary: 1.7.17-1.12.2
Baubles: 1.13-1.5.2
Screenshots encouraged
Logs, in the event of a crash
N/A
It looks like the infusion type isn't saved with the other capabilities on player death. I don't have time to set this up in my dev environment or test that the fix works today, but it just needs one line of code. Add
CapabilityHelper.copyDataOnPlayerRespawn(event, InfusionCapability.CAPABILITY);
after line 28.