Favouriteless / Enchanted

Enchanted minecraft mod repository
6 stars 5 forks source link

[Crash] World corrupting crash when changing altar upgrades via datapack #10

Closed Warhand closed 1 year ago

Warhand commented 1 year ago

Versions Enchanted: 1.0.2 Forge: 40.2.0 Minecraft 1.18.2

Describe the bug If someone creates a datapack that adds a new item into the altar upgrade lists, and then places that block on top of an altar, the world will quickly crash and become corrupted, and unable to be opened again even after the datapack is removed.

This issue was replicated in a clean profile that contained nothing but Enchanted and its dependencies, so its definitely not a compat issue.

To Reproduce Load a world, use the provided datapack, and place a lightning rod on top of an altar (This datapack makes lightning rods into an upgrade in the torches category with a priority of 2, and a recharge multipler of 10)

enchanted issue test pack.zip

Expected behavior The altar upgrade files should allow users to define and add new altar upgrades via datapacks, as well as remove existing ones if they so desire.

Screenshots N/A