mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Merge branch 'master' of https://github.com/PocketMine/PocketMine-MP
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user