Skip to content

Commit e7ad3c2

Browse files
committed
InGamePacketHandler: ignore CREATIVE_PLAYER_DESTROY_BLOCK
fixes #6757 we get PREDICT_DESTROY_BLOCK anyway, so it's not needed
1 parent c6a28d8 commit e7ad3c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/network/mcpe/handler/InGamePacketHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ private function handlePlayerActionFromData(int $action, BlockPosition $blockPos
717717
case PlayerAction::INTERACT_BLOCK: //TODO: ignored (for now)
718718
break;
719719
case PlayerAction::CREATIVE_PLAYER_DESTROY_BLOCK:
720-
//TODO: do we need to handle this?
720+
//in server auth block breaking, we get PREDICT_DESTROY_BLOCK anyway, so this action is redundant
721+
break;
721722
case PlayerAction::PREDICT_DESTROY_BLOCK:
722723
self::validateFacing($face);
723724
if(!$this->player->breakBlock($pos)){

0 commit comments

Comments
 (0)