SurvivalBlockBreakHandler: remove useless code

This commit is contained in:
Dylan K. Taylor
2021-10-30 21:35:58 +01:00
parent 1d22761d27
commit 4f816d03a7
2 changed files with 3 additions and 11 deletions

View File

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