Skip to content

Commit

Permalink
Fix insta break check
Browse files Browse the repository at this point in the history
  • Loading branch information
GameParrot committed Nov 21, 2024
1 parent bf7a53b commit acd27c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ public function attackBlock(Vector3 $pos, int $face) : bool{
return true;
}

if(!$this->isCreative() && !$block->getBreakInfo()->breaksInstantly()){
if(!$this->isCreative() && !$target->getBreakInfo()->breaksInstantly()){
$this->blockBreakHandler = new SurvivalBlockBreakHandler($this, $pos, $target, $face, 16);
}

Expand Down

0 comments on commit acd27c6

Please sign in to comment.