Fix insta break check (#6528)

This commit is contained in:
GameParrot 2024-11-20 21:22:10 -05:00 committed by GitHub
parent bf7a53b00f
commit 7c2ed7d884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1764,7 +1764,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
return true;
}
if(!$this->isCreative() && !$block->getBreakInfo()->breaksInstantly()){
if(!$this->isCreative() && !$target->getBreakInfo()->breaksInstantly()){
$this->blockBreakHandler = new SurvivalBlockBreakHandler($this, $pos, $target, $face, 16);
}