Mojira Archive
MC-99075

Cancelled block place (spawn protection) causes inventory desync

The bug

Enable spawn protection. Attempt to place a block. The block will not place, however it will be removed from your inventory. Relog, or click the empty slot and it will reappear.

With recent (1.15 snapshots) changes moving item usage to the client-side as well to get correct arm movement, this affects even more items, e.g. fire charges used to ignite camp fires.

Code analysis

Code analysis by Marcono1234 can be found in this comment.