Changing "bool" actor property values not synced to the client triggers assert failure
Partner Rank: 2 (Important)
Partner Team Reporting: Oreville Studios
Verification builds: 1.19.51.01_rc0 and 1.19.60.24_rc0
Summary:
Whenever the value of an actor property with the type of "bool" is updated in entity events without being synced to the client, Minecraft will throw the following assert failure:
---------------------------
Assert Failure - ctrl+C to copy this message to the clipboard!
---------------------------
Assertion failed: Sending a SetActorDataPacket that is completely empty!
Condition is false: !isEmpty()
Function: SetActorDataPacket::SetActorDataPacket in D:\a_work\2\s\handheld\src\common\network\packet\SetActorDataPacket.cpp @ 21
---------------------------
OK
---------------------------
Boolean actor properties that are synced to the client do not trigger the assert failure.
Impact:
This impacts content in development. We are wanting to be able to use true/false properties exclusively in the behavior pack/server in an easy to read way. This bug prevents us from doing so because this will be a blocking issue during content review and certification. Additionally, it is favorable to avoid syncing actor properties to the client where possible as to avoid sending unneeded packets.
Repro Steps:
- Enable "Assertions show a modal dialog" in the Debug settings (dev client required).
- Download, install, and enter the attached world with the actor property testing behavior pack applied.
- Run either of the following commands to update a boolean actor property that is not synced to the client: /event entity @s test:bool_no_client_sync_set_true OR /event entity @s test:bool_no_client_sync_set_false.
- Observe the assert failure.
Observed Results:
Assert failure triggers.
Expected Results:
Assert failure does not trigger. The expected result can be replicated by running /event entity @s test:bool_client_sync_set_true OR /event entity @s test:bool_client_sync_set_false as these actor properties are synced to the client.
Screenshots/Videos attached: No
Regression Builds: Unknown
Notes: Uploaded reprod world and attached to this bug report.