Paper
Paper copied to clipboard
Force sync inventory after PrepareResultEvent
This is required because when changing the result for an anvil (when the event is called because of AnvilMenu.setRenameText method) to an invalid result the item is not synced back to the client
what is an "invalid result"?
what is an "invalid result"?
For example if the inputs are a grass block and a stone block, the client predicts that this is not possible and therefore displays that: a crossed out result arrow.
Meanwhile the server could allow this and set the result to some other arbitrary item, but this is not synced to the client