mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Remove a couple of obsolete TODO comments
This commit is contained in:
parent
c0e0730923
commit
e72d8cf8f5
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user