Removed useless condition from RemoveBlockPacket handler

This commit is contained in:
Dylan K. Taylor 2017-03-19 10:32:38 +00:00
parent 8a28021b44
commit be449b6106

View File

@ -2135,12 +2135,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$vector = new Vector3($packet->x, $packet->y, $packet->z);
if($this->isCreative()){
$item = $this->inventory->getItemInHand();
}else{
$item = $this->inventory->getItemInHand();
}
$item = $this->inventory->getItemInHand();
$oldItem = clone $item;
if($this->canInteract($vector->add(0.5, 0.5, 0.5), $this->isCreative() ? 13 : 6) and $this->level->useBreakOn($vector, $item, $this, true)){