Prevents accidental voiding of solar panel upgrades
This mod modifies the crafting behavior of Solar Flux: Reborn solar panels.
The default recipe serializer that empties a solar panel of energy has been replaced with a recipe serializer solarfluxkeepupgrades:crafting_shapeless. The serializer is identical to minecraft:crafting_shapeless, but it extracts all upgrades installed in the solar panel instead of deleting them.
The default recipes for solarflux:sp_1 through solarflux:sp_8 have been replaced with a recipe serializer solarfluxkeepupgrades:crafting_shaped. This serializer identical to minecraft:crafting_shaped, but it only accepts solar panels that do not contain any upgrades.
If the number of upgrades exceeds the size of the crafing grid, (typically the 2x2 inventory crafting grid), then the recipe must be performed multiple times to extract all upgrades.
If you have Draconic Evolution installed, then this mod automatically applies to those solar panels. An additional recipe serializer is available solarfluxkeepupgrades:fusion_crafting. This serializer prevents fusion crafting when the solar panel contains upgrades.
For modpack creators:
If you override the default crafting recipes from Solar Flux: Reborn, ensure the recipe type is changed from minecraft:crafting_shaped to solarfluxkeepupgrades:crafting_shaped.
If you add custom solar panels, ensure their recipes use solarfluxkeepupgrades:crafting_shaped and solarfluxkeepupgrades:crafting_shapeless
Conversation