Improved Inventory->addItem(), fixed breaking containers duplicating the last slot, removed not necessary slot changes

This commit is contained in:
Shoghi Cervantes
2014-11-27 20:10:55 +01:00
parent a3b1d318cc
commit 6d09754ea7
4 changed files with 66 additions and 34 deletions

View File

@@ -625,7 +625,7 @@ class Item{
}
final public function __toString(){
return "Item " . $this->name . " (" . $this->id . ":" . ($this->meta === null ? "?" : $this->meta) . ")";
return "Item " . $this->name . " (" . $this->id . ":" . ($this->meta === null ? "?" : $this->meta) . ")x".$this->count;
}
public function getDestroySpeed(Block $block, Player $player){