mojira.dev
MC-313745

The game crashes when using number providers that contain themselves inside random chance conditions

The Bug:

The game crashes when using number providers that contain themselves inside random chance conditions.

Number providers that contain themselves directly are refused when data packs load since MC-310314 was fixed. However, ones that contain themselves as the chance of a random_chance condition are not, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Create a new world with the attached data pack.

  2. Compute the number provider by using the command provided below.

    /compute default float mojira:loop
  3. Observe if the game crashes.

Observed Behavior:

The game crashes.

Expected Behavior:

The game would not crash.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Crash

26.3, 26.4 Pre-Release 2

Retrieved