Using the minecraft:liquid_detection block component with an empty detection_rules array crashes the game.
Steps to Reproduce:
Create a basic addon.
Add a custom block with format version
1.21.120and 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.
Please attach the basic add-on that reproduces the issue.