From 1b37caf732c1d0fb47551d35acd636c22760f8d8 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Mon, 4 Feb 2013 20:48:02 +0100 Subject: [PATCH] Added fast Item check --- src/classes/material/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/material/Item.php b/src/classes/material/Item.php index 4725f76c..d996527b 100644 --- a/src/classes/material/Item.php +++ b/src/classes/material/Item.php @@ -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(); }