Mojira Archive
MCM-1667

'withState' does not update properties correctly when two blocks have the same property

Partner Rank: 2

Partner Team Reporting: Gamemode One

Verification builds and Platforms: 1.20.10.20

Summary:

When two custom blocks have the same custom properties, the properties are only updated properly via Scripting on the first block (in alphabetical order of file path)

Impact:

This does not impact any store content, but does impact the development of internal tools to assist in building

Repro Steps:

  1. Download the attached pack
  2. Apply the pack to a world with Beta APIs enabled
  3. Give yourself `gm1:blocka` and `gm1:blockb`
  4. Place down `blocka` and observe `gm1:beta` set to true
  5. Place down `blockb` and observe `gm1:beta` still set to false
  6. Observe `scripts/App.js` and see that both should behave the same

Observed Results:

The block property `gm1:beta` is set to 'false' on `blockb`

Expected Results:

The block property `gm1:beta` is set to 'true' on `blockb`

Screenshots/Videos attached: No.

Unresolved

Adam Brady

2023-05-31, 04:51 PM

2023-06-05, 07:07 PM

0

0

Future Release

-