Improved Block selection and construction performance

This commit is contained in:
Shoghi Cervantes
2014-08-25 16:36:16 +02:00
parent 84c63c48ca
commit 049103ab7a
10 changed files with 56 additions and 64 deletions

View File

@ -25,10 +25,15 @@ use pocketmine\item\Item;
use pocketmine\Player;
class Dirt extends Solid{
public $isActivable = true;
protected $hardness = 2.5;
protected $id = self::DIRT;
protected $meta = 0;
protected $name = "Dirt";
public function __construct(){
parent::__construct(self::DIRT, 0, "Dirt");
$this->isActivable = true;
$this->hardness = 2.5;
}
public function onActivate(Item $item, Player $player = null){