mojira.dev
MC-313769

Killing a mob whose death loot pool has very large combined weights crashes the game

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.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

BugTracker - BugTX

(Unassigned)

Unconfirmed

26.3

Retrieved