Sequential packets and break block events
zly2006 opened this issue ยท 4 comments
The bug
- cancel all AttackBlockCallback.EVENT
- place a sign with some texts
- break the sign
- the sign still exists, but the texts disappeared
- if you rejoin the game, the texts appear again
This is a bug in vanilla minecraft, but will fabric api fix it? All you need to do is to send a PlayerActionResponseS2CPacket before BlockUpdateS2CPacket, so the client-side block entity will not be in a removal state.
Since this is a bug in vanilla, I do not think the Fabric API should tinker with it as it shouldn't modify the behavior on its own.
Since this is a bug in vanilla, I do not think the Fabric API should tinker with it as it shouldn't modify the behavior on its own.
Nah, this is definitely a bug and it breaks many mods that try to protect some blocks from being harvested. I think it is OK for FAPI to do this caz nobody wants the sign content to disappear.