The game crashes when an entity with an effect level above 128 is saved. The following error is provided in the launcher afterwards:
The game crashed whilst saving entity nbt Error: java.lang.IllegalStateException: Value 128 outside of range [0:127]
Steps to Reproduce:
- Give the player an effect above 127
/effect give @p minecraft:regeneration infinite 128 true
- Pause the game
Expected & Observed Results:
- The game crashes.
- The effect would be saved properly, and the game would not crash.
Screenshots/Videos:
Notes:
- Not exclusive to the player.
- Crash log: deobf_crash-2024-01-31_11.05.26-server.txt
- is duplicated by
-
MC-268169 Crash after using effect 255 on entities
- Resolved
-
MC-268174 Crash With High Level Potions
- Resolved
-
MC-268182 Saving entity NBT (possibly the player NBT)
- Resolved
-
MC-268192 Game randomly crashes
- Resolved
-
MC-268196 Opening jigsaw block crashes game with effect of strength greater than 127
- Resolved