Changing "enum" actor property values 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 "enum" is updated in entity events, Minecraft will throw the following assert failure:
---------------------------
Assert Failure - ctrl+C to copy this message to the clipboard!
---------------------------
Assertion failed: Shouldn't ever hit this as all expressions should be compiled already.
Condition is false: false
Function: ExpressionNode::evalGeneric in D:\a_work\2\s\handheld\src\common\util\MolangScriptExpression.cpp @ 2096
---------------------------
OK
---------------------------
Additionally, when not synced to the client, Minecraft will also trigger the following assert failure similar to [MCM-1619|projects/MCM/issues/MCM-1619]:
---------------------------
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
---------------------------
Impact:
This impacts content in development. We are wanting to be able to use enum properties with easy to read strings without issue. This bug prevents us from doing so because this will be a blocking issue during content review and certification.
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 an enum actor property that is not synced to the client: /event entity @s test:enum_property_set_foo OR /event entity @s test:enum_property_set_bar.
- Observe the assert failure.
Observed Results:
Assert failure triggers.
Expected Results:
Assert failure does not trigger.
Screenshots/Videos attached: No
Regression Builds: Unknown
Notes: Uploaded reprod world and attached to this bug report.