mojira.dev
MCPE-235481

Game crash when using liquid detection block component with an empty detection rules array.

Using the minecraft:liquid_detection block component with an empty detection_rules array crashes the game.

Steps to Reproduce:

  1. Create a basic addon.

  2. Add a custom block with format version 1.21.120 and the component below.

"minecraft:liquid_detection": {
    "detection_rules": []
}
"minecraft:liquid_detection": {
    "detection_rules": []
}

Observed Results:

  • Game crashes when the array is empty.

  • No errors show up in the logs.

Expected Results:

  • Throws an error in logs or loads the block as normal.

Attachments

Comments 2

Please attach the basic add-on that reproduces the issue.

[media]

Here’s an add-on that has the issue.

Legopitstop

(Unassigned)

1554297

Confirmed

Multiple

Windows 11

1.21.132 Hotfix

Retrieved