Harden validation for server auth block breaking

This commit is contained in:
Dylan K. Taylor
2025-08-29 20:37:29 +01:00
parent 5c0a109f18
commit f1b1e1977e

View File

@ -719,6 +719,7 @@ class InGamePacketHandler extends PacketHandler{
case PlayerAction::CREATIVE_PLAYER_DESTROY_BLOCK: case PlayerAction::CREATIVE_PLAYER_DESTROY_BLOCK:
//TODO: do we need to handle this? //TODO: do we need to handle this?
case PlayerAction::PREDICT_DESTROY_BLOCK: case PlayerAction::PREDICT_DESTROY_BLOCK:
self::validateFacing($face);
if(!$this->player->breakBlock($pos)){ if(!$this->player->breakBlock($pos)){
$this->syncBlocksNearby($pos, $face); $this->syncBlocksNearby($pos, $face);
} }