mojira.dev
MC-307803

explosion_fuse lower than 4 causes game to crash

explosion_fuse of sulfur cube archetype is not restricted to be positive, and values lower than 4 causes crash IllegalArgumentException("Bound must be positive") since it will be passed to PrimedTnt.getRandomShortFuse(), eventually to random.nextInt(fuse/4) without validation.

`

Attachments

Comments 1

Confirmed and attached a crash report and simple repro pack.

[media][media]

This only occurs when the sulfur cube is set off by another explosion, not when it is ignited manually.

How to reproduce

  1. Install the attached data pack.

  2. Spawn a sulfur cube

  3. Feed it an apple

  4. /summon tnt

  5. Game crashes when the TNT explodes next to the sulfur cube

Mueller857

(Unassigned)

Confirmed

(Unassigned)

26.2 Snapshot 5

Retrieved