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
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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