Fixed gh#332

Crafting with buckets (milk) returns the bucket
This commit is contained in:
InusualZ 2013-11-25 18:27:34 -05:00
parent 286b30cf4e
commit 5fc192b730

View File

@ -791,6 +791,7 @@ class Player{
}
if(is_array($res)){
if($this->server->api->dhandle("player.craft", array("player" => $this, "recipe" => $recipe, "craft" => $craft, "type" => $type)) === false){
return false;
}
@ -840,6 +841,11 @@ class Player{
case DIAMOND:
AchievementAPI::grantAchievement($this, "diamond");
break;
case CAKE:
for($i; $i <= 2; $i++){
$this->addItem(BUCKET, 0, 1, false);
}
break;
}
}