This commit is contained in:
Michael Yoo
2013-11-26 15:15:30 +10:30
3 changed files with 76 additions and 5 deletions

View File

@@ -802,6 +802,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;
}
@@ -851,6 +852,9 @@ class Player{
case DIAMOND:
AchievementAPI::grantAchievement($this, "diamond");
break;
case CAKE:
$this->addItem(BUCKET, 0, 3, false);
break;
}
}
@@ -1852,7 +1856,7 @@ class Player{
$items = array(
APPLE => 2,
MUSHROOM_STEW => 10,
//BEETROOT_SOUP => ??,
BEETROOT_SOUP => 10,
BREAD => 5,
RAW_PORKCHOP => 3,
COOKED_PORKCHOP => 8,