fix: ack block use when interacting but not placing.

This commit is contained in:
mworzala 2023-12-02 13:20:55 +02:00
parent 0c5a177281
commit a22d769740
No known key found for this signature in database
GPG Key ID: B148F922E64797C7
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ public class BlockPlacementListener {
}
}
if (blockUse) {
refresh(player, interactedChunk);
// If the usage was blocked then the world is already up-to-date (from the prior handlers),
// So ack the change with the current world state.
player.sendPacket(new AcknowledgeBlockChangePacket(packet.sequence()));
return;
}