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

@ -24,6 +24,7 @@ namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\math\Vector3;
use pocketmine\nbt\tag\Byte;
use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Double;
@ -42,7 +43,7 @@ abstract class Fallable extends Solid{
public function onUpdate($type){
if($type === Level::BLOCK_UPDATE_NORMAL){
$down = $this->getSide(0);
$down = $this->getSide(Vector3::SIDE_DOWN);
if($down->getId() === self::AIR or ($down instanceof Liquid)){
$fall = Entity::createEntity("FallingSand", $this->getLevel()->getChunk($this->x >> 4, $this->z >> 4), new Compound("", [
"Pos" => new Enum("Pos", [