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

@ -22,16 +22,13 @@
namespace pocketmine\block;
class Transparent extends Generic{
public function __construct($id, $meta = 0, $name = "Unknown"){
parent::__construct($id, $meta, $name);
$this->isActivable = false;
$this->breakable = true;
$this->isFlowable = false;
$this->isTransparent = true;
$this->isReplaceable = false;
$this->isPlaceable = true;
$this->isSolid = true;
}
class Transparent extends Generic{
public $isActivable = false;
public $breakable = true;
public $isFlowable = false;
public $isTransparent = true;
public $isReplaceable = false;
public $isPlaceable = true;
public $isSolid = true;
}