-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Painting loose its art/variant when the direction is changed once spawned #9737
Copy link
Copy link
Closed
Labels
good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectSimple 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.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.
Metadata
Metadata
Assignees
Labels
good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectSimple 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.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
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.