mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +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(is_array($res)){
|
||||||
|
|
||||||
if($this->server->api->dhandle("player.craft", array("player" => $this, "recipe" => $recipe, "craft" => $craft, "type" => $type)) === false){
|
if($this->server->api->dhandle("player.craft", array("player" => $this, "recipe" => $recipe, "craft" => $craft, "type" => $type)) === false){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -840,6 +841,11 @@ class Player{
|
|||||||
case DIAMOND:
|
case DIAMOND:
|
||||||
AchievementAPI::grantAchievement($this, "diamond");
|
AchievementAPI::grantAchievement($this, "diamond");
|
||||||
break;
|
break;
|
||||||
|
case CAKE:
|
||||||
|
for($i; $i <= 2; $i++){
|
||||||
|
$this->addItem(BUCKET, 0, 1, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user