Refixed recipe

This commit is contained in:
Shoghi Cervantes 2013-06-06 19:32:35 +02:00
parent 0bd8d0b0d0
commit 1179369666

View File

@ -1496,6 +1496,10 @@ class Player{
$this->toCraft[$data["slot"]] = $craftItem; $this->toCraft[$data["slot"]] = $craftItem;
$craft = true; $craft = true;
} }
if($craft = true){
$this->lastCraft = microtime(true);
}
if($craft === true and count($this->craftingItems) > 0 and count($this->toCraft) > 0 and ($recipe = $this->craftItems($this->toCraft, $this->craftingItems, $this->toCraft[-1])) !== true){ if($craft === true and count($this->craftingItems) > 0 and count($this->toCraft) > 0 and ($recipe = $this->craftItems($this->toCraft, $this->craftingItems, $this->toCraft[-1])) !== true){
if($recipe === false){ if($recipe === false){