[1.16.5 & 1.18.2] Flux Networks tries to wirelessly charge slots from Curios after they no longer exist
NyanMC opened this issue ยท 3 comments
(I really hope 1.16.5 and 1.18.2 still updated with bug fixes and I'm not just wasting my time here.)
Describe the bug
If Flux Networks is set to wirelessly charge curios slots, the game will sometimes crash if a curios slot is removed using any means.
To Reproduce
Create a new world
Place down a Flux Controller, create a new network, assign the flux controller to this network (giving power to the network is optional, the game will crash regardless).
Under the Wireless Charging section, enable the charging of Curios slots.
Then, repeatedly run the following two commands until the game crashes (replace "charm" with a slot type that is currently registered in-game):
/curios add charm @p 1
/curios remove charm @p 1
Alternatively, repeatedly equip and unequip an item that gives you extra curios slots.
It may take more than one attempt. I was (un)lucky enough to have it work first try for me when reproducing the issue with a limited mod list.
Reproduced using the following mods:
Flux Networks (FluxNetworks-1.16.5-6.2.1.14.jar)
Curios API (Forge) (curios-forge-1.16.5-4.0.8.2.jar)
As well as the following mods for convenience sake:
Just Enough Items (JEI) (jei-1.16.5-7.7.1.152.jar) (Self explanatory why I would want this for testing)
Charm of Undying (Forge) (curioofundying-forge-1.16.5-5.2.0.0.jar) (Without a mod that adds a curios slot, I would have to resort to using a datapack to create one. I did not feel like doing that. This issue can be reproduced fine without this mod, as long as you have some other method of adding a curios slot.)
Expected behavior
For the game not to crash.
Screenshots
Not applicable for this bug, but I can provide a crash report.
replicated in 1.18.2 as well, basically the exact same crash so i don't feel the need to send a second crash report
I have also encountered this on 1.18.2, but also found a way to naturally encounter it during gameplay rather than requiring commands that is reasonably likely to be done organically:
Blood Magic's Living Armor has the upgrade Socketing that adds 1-5 curio slots depending on the level, and removing a Living Chestplate with any level of this upgrade when wireless charging is enabled on a flux network will consistently crash the game. You can also remove these slots using a ritual that clears the upgrades on Living Armor, which will also consistently crash the game.
Crash report from an environment with only Blood Magic and its dependencies, Curios API, Flux Networks, & JEI
This should be fixed in 3847318. 1.16 is dropped and won't get fixed.