Mojira Archive
MC-269472

Crash when table_bonus loot condition has empty chances list

Summary
table_bonus loot condition does not validate that chances list has an entry. When that list is empty, testing the loot condition triggers an error or (in case of an explosion) a crash.

Steps to Reproduce

  1. Add the attached data pack. (Works with both 1.20.4 and 24w11a.)
  2. Explode a stone block with TNT.

Expected Result
The game does not crash.

Actual Result
The game crashes.

Fixed

apple502j

[Mojang] slicedlime

2024-03-15, 05:08 PM

2024-04-11, 02:12 PM

2024-04-11, 02:12 PM

2

1

Plausible

Important

Platform

Crash, Data Packs

1.20.4, 24w11a

1.20.5 Pre-Release 2