Skip to content

Painting loose its art/variant when the direction is changed once spawned #9737

@Lulu13022002

Description

@Lulu13022002

Expected behavior

Changing the direction of a painting should only change the direction of the painting

Observed/Actual behavior

Changing the direction of a painting change the direction of the painting AND its art is reset to the default one (clientside)

Steps/models to reproduce

Just a very simple plugin that change the direction of the painting once spawned later

Plugin and Datapack List

This test plugin

Paper version

3fd1502

Other

This is due to the variant metadata not being dirty and by the fact that the painting needs to be resend completely to the client once already spawned. A similar things happens to the item frame however they correctly resend their data. Ideally the entity data must be dirty only if not set to default and possibly not only DATA_PAINTING_VARIANT_ID but all the non default ones but i don't think it's really worth for the latter.

Do note that when the player quit/rejoin the server the painting is properly updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectstatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions