mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
Fixed gh#332
Crafting with buckets (milk) returns the bucket
This commit is contained in:
parent
286b30cf4e
commit
5fc192b730
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user