Added fast Item check

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-04 20:48:02 +01:00
parent a07e002565
commit 1b37caf732

View File

@ -50,7 +50,7 @@ class Item{
$this->meta = (int) $meta;
$this->count = (int) $count;
$this->name = $name;
if(!isset($this->block) and isset(Block::$class[$this->id])){
if(!isset($this->block) and $this->id <= 0xff and isset(Block::$class[$this->id])){
$this->block = BlockAPI::get($this->id, $this->meta);
$this->name = $this->block->getName();
}