mojira.dev
MC-307803

The game crashes when a sulfur cube with an archetype that has `explosion_fuse` set to a value lower than 4 is primed by an explosion

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)

1611875

Confirmed

Expansion A

Very Important

Crash, Mob behaviour

26.2 Snapshot 5

26.2 Snapshot 6

Retrieved