
Bug Report- Spawning in Loot Capacitors with bad nbt data will cause player data corruption
colin094 opened this issue ยท 1 comments
Is there an existing issue for this?
- I did not find any existing issues.
Current Behavior
If you attempt to spawn in a custom loot capacitor and you type an unknown machine type into the nbt field, it'll create an item that makes the player's data unusable and cause the game to crash. So far this can only be fixed with third party tools to remove it.
Expected Behavior
If the wrong value is typed in, whether through testing or a misclick, the resulting item created will be an invalid item that, while unusable, doesn't create a critical error in the game.
How to Test
- /give @s enderio:loot_capacitor{ incorrect nbt data}
- The game will crash immediately upon the item entering the inventory
- The following error will appear on the crash log: "java.lang.IllegalArgumentException: No enum constant com.enderio.api.capacitor.CapacitorModifier.ALLOY_SPEED". Note, in my case, I typed ALLOY_SPEED into the nbt section of the command.
- Any further attempts to rejoin the world, be it single or multiplayer, will fail. Note that this only affects the player holding the item; it has not caused servers to crash by existing.
Local Environment
- **Operating System**: Windows 10
- **Java version**: 17.0.12 64bit
- **Minecraft Version**: 1.20.1
- **Version**: 6.2.7
- **Other Mods**: ATM9 Modpack
Any Additional Information?
No response
I regret to say that we no longer officially support Minecraft 1.20.1 - as such we will not be officially fixing this issue.
If any community member wishes to submit a pull request to address this issue, feel free to open a PR and we will review and merge it.
I will close outstanding 1.20.1 issues in a little while, to keep the issue list clear.
Thanks again for your report.