InGamePacketHandler: ignore CREATIVE_PLAYER_DESTROY_BLOCK

fixes #6757

we get PREDICT_DESTROY_BLOCK anyway, so it's not needed
This commit is contained in:
Dylan K. Taylor
2025-09-15 18:02:10 +01:00
parent c6a28d8df0
commit e7ad3c25fa

View File

@@ -717,7 +717,8 @@ class InGamePacketHandler extends PacketHandler{
case PlayerAction::INTERACT_BLOCK: //TODO: ignored (for now) case PlayerAction::INTERACT_BLOCK: //TODO: ignored (for now)
break; break;
case PlayerAction::CREATIVE_PLAYER_DESTROY_BLOCK: case PlayerAction::CREATIVE_PLAYER_DESTROY_BLOCK:
//TODO: do we need to handle this? //in server auth block breaking, we get PREDICT_DESTROY_BLOCK anyway, so this action is redundant
break;
case PlayerAction::PREDICT_DESTROY_BLOCK: case PlayerAction::PREDICT_DESTROY_BLOCK:
self::validateFacing($face); self::validateFacing($face);
if(!$this->player->breakBlock($pos)){ if(!$this->player->breakBlock($pos)){