fix: ack block use when interacting but not placing.

(cherry picked from commit a22d769740)
This commit is contained in:
mworzala 2023-12-02 13:20:55 +02:00 committed by Matt Worzala
parent 58c03cc8d2
commit 6d229a0601

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;
}