Molang variables aren't updated if player isn't looking at entity
Partner Rank:
1
Partner Team Reporting:
Pathway Studios
Verification builds and Platforms:
Minecraft-Release_UAP_x64_2244817 - 1.12.0.6 RC1
Summary:
User-defined molang variables are not updated if they are changed while the player is facing away from the entity.
Impact:
Leads to mechanics working inconsistently as sometimes these variables are updated through entity tags communicating with behavior packs and render controller queries when the player is facing away from the entity.
Repro Steps:
- Open the map provided to Gregg in slack.
- Face away from the model so that it disappears
- Push the button on top of the gold block, then the button on top of the diamond block, then look at the model
- While facing the model, push the button on the gold block followed by the button on the diamond block
Observed Results:
When facing away from the model the entity does not update. When facing towards the model, the entity updates.
Expected Results:
The entity should update in both cases.
Screenshot/Video?
Yes, provided to Gregg in slack.
Regression Builds:
None.
Notes:
The model also reverts to its default state if the entity is outside of the player's render distance (not just the player having their back turned, but walking several chunks away such that the entity unloads).