Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Force sync inventory after PrepareResultEvent

Open Sytm opened this issue 2 years ago • 2 comments

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

Sytm avatar Sep 03 '23 07:09 Sytm

what is an "invalid result"?

Owen1212055 avatar Mar 03 '24 20:03 Owen1212055

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

Sytm avatar Mar 04 '24 19:03 Sytm