integer components in component groups get incorrectly removed
Verification builds: 1.16.100.04, 1.9.0.15
Summary: When removing a component group containing an integer component with a value greater than 0, the value of the integer component doesn't get reset to 0.
Example: The "minecraft:variant" of an entity is set to 1 through an added component group. When that component group gets removed, the variant of the entity stays 1, while it should get reset to 0.
Note: It can be noted that the "minecraft:scale" value of an entity gets properly reset to 0 in a similar case. It is not the case for "minecraft:mark_variant", "minecraft:variant" or "minecraft:skin_id".
Reproduction steps:
- create a world and add the Behavior Pack attached to this report
- summon/spawn an armor_stand (at that point, the "minecraft:scale" value of the armor_stand is 2, and the "minecraft:variant" value is 1)
- notice the scale of the armor_stand is 2
- right click the armor_stand (at that point, the component group containing the scale and variant values is removed, meaning the scale should now be 1 and the variant should now be 0)
- notice the scale of the armor_stand is 1, while no message in the chat states that the variant is now 0
Expected result
The "minecraft:variant" value gets reset to 0.
Actual result
The "minecraft:variant" value stays 1.
2020-12-02, 11:53 PM
2021-01-05, 10:46 PM
2021-01-05, 10:46 PM
0
1
-