Game crash when a mob whose death loot pool contains two entries with weight 2000000000 dies.
Steps to reproduce:
Create a new world with the attached data pack enabled
Run the following commands:
/setblock 0 64 0 minecraft:lava /summon minecraft:pig 0 64 0 {Health:1.0f,DeathLootTable:"test:death_wovf"}Wait for the pig to die in the lava and observe the game crash.
Observed result:
The game crashes.
Expected result:
Loot pool entry weight totals should be validated so rolling the table cannot crash the game.
Thank you for helping us improve Minecraft! We saved your files: