Added block break tool type, fixed falling sand, fixed duplicated jungle leaves

This commit is contained in:
Shoghi Cervantes
2015-07-27 20:15:34 +02:00
parent 866fde5351
commit 0380e9009a
75 changed files with 378 additions and 4 deletions

View File

@ -23,6 +23,7 @@ namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\item\Item;
use pocketmine\item\Tool;
use pocketmine\level\Level;
use pocketmine\math\AxisAlignedBB;
use pocketmine\Player;
@ -133,6 +134,10 @@ class Ladder extends Transparent{
return false;
}
public function getToolType(){
return Tool::TYPE_AXE;
}
public function getDrops(Item $item){
return [
[$this->id, 0, 1],