Why when I cancel ChangeBlockEvent.All (Place), The Item in player was disappeared ? sponge 8.0

Why when I cancel ChangeBlockEvent.All (Place), The Item that player is placing, Its disappeared ? It shouldn’t disapear cause cancel placing.

sponge 8.0

Please help me.

So the all changeBlockEvent is a bit different in the fact that cancelling the event just tells sponge (and Minecraft) not to carry on with all the block change.

What you want to do is invalidate a (or all) block transactions and I believe that doesnt remove that block.

You can invalidate a block transaction on the transaction itself. Or all of them on the event

1 Like

Thank for you care!