Remove a couple of obsolete TODO comments

This commit is contained in:
Dylan K. Taylor 2017-05-04 10:46:28 +01:00
parent c0e0730923
commit e72d8cf8f5
2 changed files with 0 additions and 2 deletions

View File

@ -2381,7 +2381,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}else{ }else{
$item = $this->inventory->getItemInHand(); $item = $this->inventory->getItemInHand();
$oldItem = clone $item; $oldItem = clone $item;
//TODO: Implement adventure mode checks
if($this->level->useItemOn($blockVector, $item, $packet->face, $packet->fx, $packet->fy, $packet->fz, $this, true)){ if($this->level->useItemOn($blockVector, $item, $packet->face, $packet->fx, $packet->fy, $packet->fz, $this, true)){
if(!$item->equals($oldItem) or $item->getCount() !== $oldItem->getCount()){ if(!$item->equals($oldItem) or $item->getCount() !== $oldItem->getCount()){
$this->inventory->setItemInHand($item); $this->inventory->setItemInHand($item);

View File

@ -1579,7 +1579,6 @@ class Level implements ChunkManager, Metadatable{
*/ */
public function useBreakOn(Vector3 $vector, Item &$item = null, Player $player = null, bool $createParticles = false) : bool{ public function useBreakOn(Vector3 $vector, Item &$item = null, Player $player = null, bool $createParticles = false) : bool{
$target = $this->getBlock($vector); $target = $this->getBlock($vector);
//TODO: Adventure mode checks
if($item === null){ if($item === null){
$item = Item::get(Item::AIR, 0, 0); $item = Item::get(Item::AIR, 0, 0);